mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
A few extra bits
svn-id: r17110
This commit is contained in:
parent
44205266e8
commit
82c354b9d4
@ -174,10 +174,13 @@ int ScummEngine::getObjectImageCount(int object) {
|
||||
int objnum;
|
||||
|
||||
objnum = getObjectIndex(object);
|
||||
assert(objnum != -1);
|
||||
if (objnum == -1);
|
||||
return 0;
|
||||
|
||||
ptr = getOBIMFromObject(_objs[objnum]);
|
||||
imhd = (const ImageHeader *)findResourceData(MKID('IMHD'), ptr);
|
||||
if (!imhd)
|
||||
return 0;
|
||||
|
||||
if (_version == 8)
|
||||
return (READ_LE_UINT32(&imhd->v8.image_count));
|
||||
|
Loading…
x
Reference in New Issue
Block a user