diff options
author | Eugene Sandulenko | 2014-05-14 12:12:44 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-05-14 12:12:44 +0200 |
commit | cbe41c94f7cdeb76d40dbef4f5e293f32866d433 (patch) | |
tree | 17113a2133de1d5f95063a6d61743f6f9800fa6e /engines/fullpipe | |
parent | a59a4b86563609c5b1a52d98ce5bbc939bc094b8 (diff) | |
download | scummvm-rg350-cbe41c94f7cdeb76d40dbef4f5e293f32866d433.tar.gz scummvm-rg350-cbe41c94f7cdeb76d40dbef4f5e293f32866d433.tar.bz2 scummvm-rg350-cbe41c94f7cdeb76d40dbef4f5e293f32866d433.zip |
FULLPIPE: Fix bug in Scene::getPictureObjectById()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |