aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-30 00:54:58 +0200
committerEugene Sandulenko2013-10-30 00:54:58 +0200
commit706d1f9f81fcd579c90781656c8feec68e938c95 (patch)
tree27cee54a1cd86a0cc0aec90d6648ae5df0ba5515 /engines/fullpipe
parent0c2bc41f49db79bf5ad61fcd20637ac6d5bd616b (diff)
downloadscummvm-rg350-706d1f9f81fcd579c90781656c8feec68e938c95.tar.gz
scummvm-rg350-706d1f9f81fcd579c90781656c8feec68e938c95.tar.bz2
scummvm-rg350-706d1f9f81fcd579c90781656c8feec68e938c95.zip
FULLPIPE: Fix crash in debug menu
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/scene.cpp2
-rw-r--r--engines/fullpipe/scenes.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp
index cc93363786..3831831866 100644
--- a/engines/fullpipe/scene.cpp
+++ b/engines/fullpipe/scene.cpp
@@ -328,7 +328,7 @@ void Scene::setPictureObjectsFlag4() {
}
PictureObject *Scene::getPictureObjectById(int objId, int flags) {
- for (uint i = 1; i < _picObjList.size(); i++) {
+ for (uint i = 0; i < _picObjList.size(); i++) {
if (((PictureObject *)_picObjList[i])->_id == objId && ((PictureObject *)_picObjList[i])->_okeyCode == flags)
return (PictureObject *)_picObjList[i];
}
diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h
index 5597612aa6..9100fa6a0c 100644
--- a/engines/fullpipe/scenes.h
+++ b/engines/fullpipe/scenes.h
@@ -45,7 +45,7 @@ class Vars {
PictureObject *scene01_picSc01Osk;
PictureObject *scene01_picSc01Osk2;
- GameObject *selector;
+ PictureObject *selector;
};
} // End of namespace Fullpipe