From cbe41c94f7cdeb76d40dbef4f5e293f32866d433 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 14 May 2014 12:12:44 +0200 Subject: FULLPIPE: Fix bug in Scene::getPictureObjectById() --- engines/fullpipe/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp index 5dde566192..2a78454156 100644 --- a/engines/fullpipe/scene.cpp +++ b/engines/fullpipe/scene.cpp @@ -358,7 +358,7 @@ void Scene::stopAllSounds() { } PictureObject *Scene::getPictureObjectById(int objId, int flags) { - for (uint i = 0; i < _picObjList.size(); i++) { + for (uint i = 1; i < _picObjList.size(); i++) { if (((PictureObject *)_picObjList[i])->_id == objId && ((PictureObject *)_picObjList[i])->_okeyCode == flags) return (PictureObject *)_picObjList[i]; } -- cgit v1.2.3