mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
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:
parent
e1d66d1bb9
commit
2c5e70b1c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue