diff options
author | Eugene Sandulenko | 2013-10-30 00:54:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-30 00:54:58 +0200 |
commit | 706d1f9f81fcd579c90781656c8feec68e938c95 (patch) | |
tree | 27cee54a1cd86a0cc0aec90d6648ae5df0ba5515 /engines/fullpipe | |
parent | 0c2bc41f49db79bf5ad61fcd20637ac6d5bd616b (diff) | |
download | scummvm-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.cpp | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes.h | 2 |
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 |