From 3ec82210a90fbf89457216641ac3ff3339b50fdd Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Sat, 17 Oct 2020 13:46:24 +0300 Subject: [PATCH] PETKA: fix crash in petka 2 --- engines/petka/interfaces/map.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/petka/interfaces/map.cpp b/engines/petka/interfaces/map.cpp index b00fa60039d..9792241a969 100644 --- a/engines/petka/interfaces/map.cpp +++ b/engines/petka/interfaces/map.cpp @@ -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;