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.

This commit is contained in:
Areloch 2017-05-14 17:51:13 -05:00
parent b0fe71fa2f
commit 2d648dae58

View file

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