Quellcode durchsuchen

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

Areloch vor 8 Jahren
Ursprung
Commit
42718099ed
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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.");
    }
 
-   if( usage != NULL && usage != "")
+   if((usage != NULL) && strlen(usage))
    {
       // Copy Usage Document
       S32 usageLen = dStrlen( usage );