Sfoglia il codice sorgente

feedback for *which* namespace is already linked. should probably look into enhancing assertwarn to be able to take a formatted string at some point...

Azaezel 10 anni fa
parent
commit
793d7bf856
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Engine/source/console/simObject.cpp

+ 2 - 1
Engine/source/console/simObject.cpp

@@ -1407,7 +1407,8 @@ void SimObject::linkNamespaces()
    // while still having the class namespace fields matching the current
    // setup.
 
-   AssertWarn( mNameSpace == NULL, "SimObject::linkNamespaces -- Namespace linkage already in place" );
+   if (mNameSpace != NULL)
+      Con::warnf("SimObject::linkNamespaces -- Namespace linkage already in place %s", mNameSpace->getName());
    if( mNameSpace )
       return;