From 62b5c9fcfdf16fbc896106b5c84ebf2ff58ad5db Mon Sep 17 00:00:00 2001 From: Nathan Bowhay Date: Thu, 29 Jan 2015 14:42:28 -0800 Subject: [PATCH] Fixed issue with string replace String replace doesn't always work correctly this fixes it. --- Engine/source/console/consoleFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/console/consoleFunctions.cpp b/Engine/source/console/consoleFunctions.cpp index a5ea49f33..82bd5c566 100644 --- a/Engine/source/console/consoleFunctions.cpp +++ b/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);