aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-06-28 13:51:03 -0400
committerMatthew Hoops2011-06-28 13:51:03 -0400
commitcc818b444c454d2f8978655d5c29f379cbe21376 (patch)
treef8426d33f1c9512f2d352fd2517b79784560a14a
parent71c4329d86566aa6281a4790b08fe8e77d057f10 (diff)
downloadscummvm-rg350-cc818b444c454d2f8978655d5c29f379cbe21376.tar.gz
scummvm-rg350-cc818b444c454d2f8978655d5c29f379cbe21376.tar.bz2
scummvm-rg350-cc818b444c454d2f8978655d5c29f379cbe21376.zip
MOHAWK: Use matchString instead of equalsIgnoreCase for resource names
A regression from 71c4329
-rw-r--r--engines/mohawk/resource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/resource.cpp b/engines/mohawk/resource.cpp
index 2dc6d2252a..df8271dc5a 100644
--- a/engines/mohawk/resource.cpp
+++ b/engines/mohawk/resource.cpp
@@ -74,7 +74,7 @@ bool Archive::hasResource(uint32 tag, const Common::String &resName) const {
const ResourceMap &resMap = _types[tag];
for (ResourceMap::const_iterator it = resMap.begin(); it != resMap.end(); it++)
- if (it->_value.name.equalsIgnoreCase(resName))
+ if (it->_value.name.matchString(resName))
return true;
return false;
@@ -113,7 +113,7 @@ uint16 Archive::findResourceID(uint32 tag, const Common::String &resName) const
const ResourceMap &resMap = _types[tag];
for (ResourceMap::const_iterator it = resMap.begin(); it != resMap.end(); it++)
- if (it->_value.name.equalsIgnoreCase(resName))
+ if (it->_value.name.matchString(resName))
return it->_key;
return 0xFFFF;