aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-08 08:25:46 -0500
committerPaul Gilbert2014-03-08 08:25:46 -0500
commit8bfa5f1da2d84fafdda88aac0cdd5e17ebfbc100 (patch)
tree498a899cfbba01496ae7151d875e63eb3db913de
parent3399516c5e4c2931adf76a25944cb3e46f9934ee (diff)
downloadscummvm-rg350-8bfa5f1da2d84fafdda88aac0cdd5e17ebfbc100.tar.gz
scummvm-rg350-8bfa5f1da2d84fafdda88aac0cdd5e17ebfbc100.tar.bz2
scummvm-rg350-8bfa5f1da2d84fafdda88aac0cdd5e17ebfbc100.zip
MADS: Make resource file access case insensitive
-rw-r--r--engines/mads/resources.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/resources.cpp b/engines/mads/resources.cpp
index 5e490c2719..f85d5ce340 100644
--- a/engines/mads/resources.cpp
+++ b/engines/mads/resources.cpp
@@ -199,7 +199,7 @@ bool HagArchive::getHeaderEntry(const Common::String &resourceName,
Common::List<HagEntry>::iterator ei;
for (ei = hagIndex._entries.begin(); ei != hagIndex._entries.end(); ++ei) {
hagEntry = *ei;
- if (hagEntry._resourceName == resName)
+ if (hagEntry._resourceName.compareToIgnoreCase(resName) == 0)
return true;
}
}