aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-07-20 21:53:58 +0000
committerFilippos Karapetis2010-07-20 21:53:58 +0000
commite7abc6da4fe164e1ba7e86a16dc3bf774392a3e9 (patch)
treebe4bdf0f2af480a36f69dbe260143474a15f62c5
parent2a47f573ddad57655556ccc9b91753987aedb681 (diff)
downloadscummvm-rg350-e7abc6da4fe164e1ba7e86a16dc3bf774392a3e9.tar.gz
scummvm-rg350-e7abc6da4fe164e1ba7e86a16dc3bf774392a3e9.tar.bz2
scummvm-rg350-e7abc6da4fe164e1ba7e86a16dc3bf774392a3e9.zip
SCI: Fixed an off-by-one error in the resource manager - it tried to load patches of type kResourceTypeInvalid
svn-id: r51075
-rw-r--r--engines/sci/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index 127236650f..d84e9cc75b 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -1277,7 +1277,7 @@ void ResourceManager::readResourcePatches() {
const char *szResType;
ResourceSource *psrcPatch;
- for (int i = kResourceTypeView; i <= kResourceTypeInvalid; ++i) {
+ for (int i = kResourceTypeView; i < kResourceTypeInvalid; ++i) {
// Ignore the types that can't be patched (and Robot/VMD is handled externally for now)
if (!s_resourceTypeSuffixes[i] || i == kResourceTypeRobot || i == kResourceTypeVMD)
continue;