mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Fixed issue with string replace
String replace doesn't always work correctly this fixes it.
This commit is contained in:
parent
014b566014
commit
62b5c9fcfd
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ DefineConsoleFunction( strreplace, const char*, ( const char* source, const char
|
||||||
if(!scan)
|
if(!scan)
|
||||||
{
|
{
|
||||||
dStrcpy(ret + dstp, source + scanp);
|
dStrcpy(ret + dstp, source + scanp);
|
||||||
break;
|
return ret;
|
||||||
}
|
}
|
||||||
U32 len = scan - (source + scanp);
|
U32 len = scan - (source + scanp);
|
||||||
dStrncpy(ret + dstp, source + scanp, len);
|
dStrncpy(ret + dstp, source + scanp, len);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue