浏览代码

Console Classes dump fix. It was running aground on having a case where there was a empty value for the 'usage' field in the class header. This would break the allocation because we're allocating nothing. This rejects it if the usage field is an empty string.

Areloch 8 年之前
父节点
当前提交
2c5e70b1c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/console/consoleDoc.cpp

+ 1 - 1
Engine/source/console/consoleDoc.cpp

@@ -85,7 +85,7 @@ void printClassHeader(const char* usage, const char * className, const char * su
       Con::printf("///       information was available for this class.");
       Con::printf("///       information was available for this class.");
    }
    }
 
 
-   if( usage != NULL )
+   if( usage != NULL && usage != "")
    {
    {
       // Copy Usage Document
       // Copy Usage Document
       S32 usageLen = dStrlen( usage );
       S32 usageLen = dStrlen( usage );