Bläddra i källkod

Merge pull request #1025 from Azaezel/alpha41/unsignedunmangle

fix strrepeat <0
Brian Roberts 2 år sedan
förälder
incheckning
687fd97ce0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Engine/source/console/consoleFunctions.cpp

+ 1 - 1
Engine/source/console/consoleFunctions.cpp

@@ -738,7 +738,7 @@ DefineEngineFunction( strrepeat, const char*, ( const char* str, S32 numTimes, c
 {
    StringBuilder result;
    bool isFirst = false;
-   for( U32 i = 0; i < numTimes; ++ i )
+   for( S32 i = 0; i < numTimes; ++ i )
    {
       if( !isFirst )
          result.append( delimiter );