aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-14 12:12:44 +0200
committerEugene Sandulenko2014-05-14 12:12:44 +0200
commitcbe41c94f7cdeb76d40dbef4f5e293f32866d433 (patch)
tree17113a2133de1d5f95063a6d61743f6f9800fa6e /engines
parenta59a4b86563609c5b1a52d98ce5bbc939bc094b8 (diff)
downloadscummvm-rg350-cbe41c94f7cdeb76d40dbef4f5e293f32866d433.tar.gz
scummvm-rg350-cbe41c94f7cdeb76d40dbef4f5e293f32866d433.tar.bz2
scummvm-rg350-cbe41c94f7cdeb76d40dbef4f5e293f32866d433.zip
FULLPIPE: Fix bug in Scene::getPictureObjectById()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scene.cpp2
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];
}