SCI: Fixed an off-by-one error in the resource manager - it tried to load patches of type kResourceTypeInvalid

svn-id: r51075
This commit is contained in:
Filippos Karapetis 2010-07-20 21:53:58 +00:00
parent 2a47f573dd
commit e7abc6da4f

View File

@ -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;