浏览代码

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 年之前
父节点
当前提交
793d7bf856
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;