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 {
|
||||
|
|
|
@ -1921,7 +1921,7 @@ void ScummEngine_v90he::o90_getObjectData() {
|
|||
push(_objs[_heObjectNum].height);
|
||||
break;
|
||||
case 4:
|
||||
push(0);
|
||||
push(getObjectImageCount(_heObject));
|
||||
break;
|
||||
case 6:
|
||||
if (_heObjectNum == -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue