diff options
author | Benjamin Haisch | 2009-10-06 07:35:21 +0000 |
---|---|---|
committer | Benjamin Haisch | 2009-10-06 07:35:21 +0000 |
commit | 6cd612d3594012bac14b1aad791f1117faf57bf0 (patch) | |
tree | 1609828d431794675d6c1c69b338f20583fcba4e /engines/made | |
parent | c901f18e031e4ecae0b168a031c8b6ad71981680 (diff) | |
download | scummvm-rg350-6cd612d3594012bac14b1aad791f1117faf57bf0.tar.gz scummvm-rg350-6cd612d3594012bac14b1aad791f1117faf57bf0.tar.bz2 scummvm-rg350-6cd612d3594012bac14b1aad791f1117faf57bf0.zip |
Fix regression introduced by r44459; LGoP2 crashed after Infocom logo
svn-id: r44688
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/resource.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp index a2e057f65d..36a1c4c71c 100644 --- a/engines/made/resource.cpp +++ b/engines/made/resource.cpp @@ -499,8 +499,9 @@ void ResourceReader::loadIndex(ResourceSlots *slots) { _fd->readUint32LE(); // skip index size _fd->readUint32LE(); // skip unknown _fd->readUint32LE(); // skip res type - _fd->readUint16LE(); // skip unknown count - uint16 count = _fd->readUint16LE(); + uint16 count1 = _fd->readUint16LE(); + uint16 count2 = _fd->readUint16LE(); + uint16 count = MAX(count1, count2); _fd->readUint16LE(); // skip unknown count for (uint16 i = 0; i < count; i++) { uint32 offs = _fd->readUint32LE(); |