mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
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:
parent
2a47f573dd
commit
e7abc6da4f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user