Skip to content

Commit

Permalink
Fix a StringUtil regression from the arm-noglsl merge
Browse files Browse the repository at this point in the history
Fixes issue 6048. Thanks to Starscream for locating the regression.
  • Loading branch information
delroth committed Feb 28, 2013
1 parent 9ff704f commit 07539b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/Src/StringUtil.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 07539b9

Please sign in to comment.