summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/StringUtil.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2013-02-28 13:12:35 +0100
committerPierre Bourdon <delroth@gmail.com>2013-02-28 13:12:35 +0100
commit07539b9a3ff1bc55bd829d0098ac025dbfd4ad44 (patch)
treea0e7653627e2cf6a98cb2c224069c10cbfcdae4b /Source/Core/Common/Src/StringUtil.cpp
parent9ff704f202cf4d31e00476c08d27327f12478b8a (diff)
Fix a StringUtil regression from the arm-noglsl merge
Fixes issue 6048. Thanks to Starscream for locating the regression.
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
-rw-r--r--Source/Core/Common/Src/StringUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp
index 6ef3d91a73..cd08863877 100644
--- a/Source/Core/Common/Src/StringUtil.cpp
+++ b/Source/Core/Common/Src/StringUtil.cpp
@@ -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;