PETKA: fix crash in petka 2

This commit is contained in:
Andrei Prykhodko 2020-10-17 13:46:24 +03:00
parent b02ebc6ca7
commit 3ec82210a9

View File

@ -49,7 +49,9 @@ void InterfaceMap::start(int id) {
for (uint i = 0; i < info->attachedObjIds.size(); ++i) {
QMessageObject *obj = sys->findObject(info->attachedObjIds[i]);
FlicDecoder *flc = g_vm->resMgr()->getFlic(obj->_resourceId);
flc->setFrame(1);
if (flc) {
flc->setFrame(1);
}
obj->_z = 1;
obj->_x = 0;
obj->_y = 0;