diff --git a/Engine/source/console/simObject.cpp b/Engine/source/console/simObject.cpp index 399a57f4b..711e37718 100644 --- a/Engine/source/console/simObject.cpp +++ b/Engine/source/console/simObject.cpp @@ -1407,11 +1407,11 @@ void SimObject::linkNamespaces() // while still having the class namespace fields matching the current // setup. - if (mNameSpace != NULL) + if (mNameSpace) + { Con::warnf("SimObject::linkNamespaces -- Namespace linkage already in place %s", mNameSpace->getName()); - if( mNameSpace ) return; - + } // Get the namespace for the C++ class. Namespace* cppNamespace = getClassRep()->getNameSpace();