just in case...

svn-id: r6997
This commit is contained in:
Max Horn 2003-04-12 20:12:52 +00:00
parent 46a6fc69c0
commit 3ffafcfdf3

View File

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