Add missing case for getObjectData
svn-id: r17109
This commit is contained in:
parent
73ec1f1745
commit
44205266e8
2 changed files with 6 additions and 2 deletions
|
@ -178,7 +178,11 @@ int ScummEngine::getObjectImageCount(int object) {
|
|||
|
||||
ptr = getOBIMFromObject(_objs[objnum]);
|
||||
imhd = (const ImageHeader *)findResourceData(MKID('IMHD'), ptr);
|
||||
return (READ_LE_UINT32(&imhd->v8.image_count));
|
||||
|
||||
if (_version == 8)
|
||||
return (READ_LE_UINT32(&imhd->v8.image_count));
|
||||
else
|
||||
return (READ_LE_UINT16(&imhd->old.image_count));
|
||||
}
|
||||
|
||||
int ScummEngine::whereIsObject(int object) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue