2
0
Johan Mattsson 2 жил өмнө
parent
commit
f08d712309

+ 2 - 2
engine/source/platform/platformString_ScriptBinding.h

@@ -347,7 +347,7 @@ ConsoleFunctionWithDocs( stripTrailingSpaces, ConsoleString, 2, 2, ( string ))
    S32 temp = S32(dStrlen( argv[1] ));
    if ( temp )
    {
-      while ( ( argv[1][temp - 1] == ' ' || argv[1][temp - 1] == '_' ) && temp >= 1 )
+      while ( temp >= 1 && ( argv[1][temp - 1] == ' ' || argv[1][temp - 1] == '_' ) )
          temp--;
 
       if ( temp )
@@ -362,4 +362,4 @@ ConsoleFunctionWithDocs( stripTrailingSpaces, ConsoleString, 2, 2, ( string ))
    return( "" );	
 }
 
-/*! @} */ // group StringFunctions
+/*! @} */ // group StringFunctions