Browse Source

Use the more stable method of checking the string by using the strlen call.

Areloch 8 years ago
parent
commit
c0f314101d
1 changed files with 1 additions and 1 deletions
  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 && usage != "")
+   if((usage != NULL) && strlen(usage))
    {
    {
       // Copy Usage Document
       // Copy Usage Document
       S32 usageLen = dStrlen( usage );
       S32 usageLen = dStrlen( usage );