Fix a StringUtil regression from the arm-noglsl merge

Fixes issue 6048. Thanks to Starscream for locating the regression.
This commit is contained in:
Pierre Bourdon 2013-02-28 13:12:35 +01:00
parent 9ff704f202
commit 07539b9a3f
1 changed files with 1 additions and 1 deletions

View File

@ -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;