mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
just in case...
svn-id: r6997
This commit is contained in:
parent
46a6fc69c0
commit
3ffafcfdf3
@ -1219,7 +1219,9 @@ int Scumm::getResourceDataSize(byte *ptr) {
|
||||
if (ptr == NULL)
|
||||
return 0;
|
||||
|
||||
if (_features & GF_SMALL_HEADER)
|
||||
if (_features & GF_OLD_BUNDLE)
|
||||
return READ_LE_UINT16(ptr) - 4;
|
||||
else if (_features & GF_SMALL_HEADER)
|
||||
return READ_LE_UINT32(ptr) - 6;
|
||||
else
|
||||
return READ_BE_UINT32_UNALIGNED(ptr - 4) - 8;
|
||||
|
Loading…
Reference in New Issue
Block a user