diff options
author | Max Horn | 2003-04-12 20:12:52 +0000 |
---|---|---|
committer | Max Horn | 2003-04-12 20:12:52 +0000 |
commit | 3ffafcfdf3b43ff00409c5e4b94a687dea583731 (patch) | |
tree | 56ca15cd51a4b924ddd44d85a73e0076217affca /scumm/resource.cpp | |
parent | 46a6fc69c049ba6317896d954abec443e2dedfe6 (diff) | |
download | scummvm-rg350-3ffafcfdf3b43ff00409c5e4b94a687dea583731.tar.gz scummvm-rg350-3ffafcfdf3b43ff00409c5e4b94a687dea583731.tar.bz2 scummvm-rg350-3ffafcfdf3b43ff00409c5e4b94a687dea583731.zip |
just in case...
svn-id: r6997
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r-- | scumm/resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index 0feddab40f..326abf1f09 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -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; |