فهرست منبع

Fixed issue with string replace

String replace doesn't always work correctly this fixes it.
Nathan Bowhay 11 سال پیش
والد
کامیت
62b5c9fcfd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Engine/source/console/consoleFunctions.cpp

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

@@ -480,7 +480,7 @@ DefineConsoleFunction( strreplace, const char*, ( const char* source, const char
       if(!scan)
       {
          dStrcpy(ret + dstp, source + scanp);
-         break;
+         return ret;
       }
       U32 len = scan - (source + scanp);
       dStrncpy(ret + dstp, source + scanp, len);