mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
console membervar cleanup
This commit is contained in:
parent
189595670a
commit
9b8c950701
4 changed files with 71 additions and 71 deletions
|
|
@ -668,13 +668,13 @@ DefineConsoleFunction( strreplace, const char*, ( const char* source, const char
|
|||
U32 dstp = 0;
|
||||
for(;;)
|
||||
{
|
||||
const char *scan = dStrstr(source + scanp, from);
|
||||
if(!scan)
|
||||
const char *subScan = dStrstr(source + scanp, from);
|
||||
if(!subScan)
|
||||
{
|
||||
dStrcpy(ret + dstp, source + scanp);
|
||||
return ret;
|
||||
}
|
||||
U32 len = scan - (source + scanp);
|
||||
U32 len = subScan - (source + scanp);
|
||||
dStrncpy(ret + dstp, source + scanp, len);
|
||||
dstp += len;
|
||||
dStrcpy(ret + dstp, to);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue