The sprite set by sfSetObjImage is assigned correctly now for IHNM. This fixes several cases where objects with more than one frame were incorrectly displayed

svn-id: r28571
This commit is contained in:
Filippos Karapetis 2007-08-13 01:20:42 +00:00
parent 742d503b92
commit f3158075bb

View file

@ -629,7 +629,10 @@ void Script::sfSetObjImage(SCRIPTFUNC_PARAMS) {
spriteId = thread->pop();
obj = _vm->_actor->getObj(objectId);
obj->_spriteListResourceId = OBJ_SPRITE_BASE + spriteId;
if (_vm->getGameType() == GType_IHNM)
obj->_spriteListResourceId = spriteId;
else
obj->_spriteListResourceId = OBJ_SPRITE_BASE + spriteId;
_vm->_interface->refreshInventory();
}