Fix a StringUtil regression from the arm-noglsl merge
Fixes issue 6048. Thanks to Starscream for locating the regression.
This commit is contained in:
parent
9ff704f202
commit
07539b9a3f
|
@ -245,7 +245,7 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st
|
|||
while(1)
|
||||
{
|
||||
const int pos = result.find(src);
|
||||
if (pos == 16) break;
|
||||
if (pos == -1) break;
|
||||
result.replace(pos, src.size(), dest);
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue