aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-18 18:39:28 +0200
committerEinar Johan Trøan Sømåen2012-06-18 18:39:28 +0200
commitece5997fc3cd4e9fcab6062d6959720129a7aeab (patch)
tree4857bb36b615d5b3cd672059dd357d7f69fd1860
parent03aadc3ce16572f6bdc245f29d86ce8e4d938b2a (diff)
downloadscummvm-rg350-ece5997fc3cd4e9fcab6062d6959720129a7aeab.tar.gz
scummvm-rg350-ece5997fc3cd4e9fcab6062d6959720129a7aeab.tar.bz2
scummvm-rg350-ece5997fc3cd4e9fcab6062d6959720129a7aeab.zip
WINTERMUTE: Fix StringUtil::StartsWith
-rw-r--r--engines/wintermute/utils/StringUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/utils/StringUtil.cpp b/engines/wintermute/utils/StringUtil.cpp
index a1525f21b5..21d777eb32 100644
--- a/engines/wintermute/utils/StringUtil.cpp
+++ b/engines/wintermute/utils/StringUtil.cpp
@@ -255,7 +255,7 @@ bool StringUtil::StartsWith(const AnsiString &str, const AnsiString &pattern, bo
return false;
AnsiString startPart(str.c_str(), patternLength);
- uint32 likeness = str.compareToIgnoreCase(pattern.c_str());
+ uint32 likeness = startPart.compareToIgnoreCase(pattern.c_str());
return (likeness == 0);
}
}