Bladeren bron

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

Areloch 8 jaren geleden
bovenliggende
commit
c0f314101d
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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 );