handle old_bundle size at addObjectToInventory() func
svn-id: r7002
This commit is contained in:
parent
134d358261
commit
aff192d554
1 changed files with 3 additions and 1 deletions
|
@ -905,7 +905,9 @@ void Scumm::addObjectToInventory(uint obj, uint room) {
|
|||
size = READ_BE_UINT32_UNALIGNED(ptr + 4);
|
||||
} else {
|
||||
findObjectInRoom(&foir, foCodeHeader, obj, room);
|
||||
if (_features & GF_SMALL_HEADER)
|
||||
if (_features & GF_OLD_BUNDLE)
|
||||
size = READ_LE_UINT16(foir.obcd);
|
||||
else if (_features & GF_SMALL_HEADER)
|
||||
size = READ_LE_UINT32(foir.obcd);
|
||||
else
|
||||
size = READ_BE_UINT32_UNALIGNED(foir.obcd + 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue