aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-05-24 07:45:08 +0200
committerStrangerke2016-05-24 07:46:25 +0200
commitde59c82b488b9590f4ef9d4e1ccd1d3280890981 (patch)
treecce7cebc0148ec20ab111a373489fffcb0b2bb4e
parentafbf1133d33bda71818f398150117f5189337346 (diff)
downloadscummvm-rg350-de59c82b488b9590f4ef9d4e1ccd1d3280890981.tar.gz
scummvm-rg350-de59c82b488b9590f4ef9d4e1ccd1d3280890981.tar.bz2
scummvm-rg350-de59c82b488b9590f4ef9d4e1ccd1d3280890981.zip
GNAP: Fix more uninitialized variables
-rw-r--r--engines/gnap/scenes/arcade.cpp1
-rw-r--r--engines/gnap/scenes/group1.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/engines/gnap/scenes/arcade.cpp b/engines/gnap/scenes/arcade.cpp
index 571fdbf85f..2966c3ec05 100644
--- a/engines/gnap/scenes/arcade.cpp
+++ b/engines/gnap/scenes/arcade.cpp
@@ -1020,6 +1020,7 @@ Scene51::Scene51(GnapEngine *vm) : Scene(vm) {
_nextDropItemKind = -1;
_itemInsertX = -1;
_itemInsertDirection = -1;
+ _platypusSequenceId = -1;
_platypusNextSequenceId = -1;
_platypusJumpSequenceId = -1;
_itemsCtr = -1;
diff --git a/engines/gnap/scenes/group1.cpp b/engines/gnap/scenes/group1.cpp
index f76d04c64d..7ae60621b2 100644
--- a/engines/gnap/scenes/group1.cpp
+++ b/engines/gnap/scenes/group1.cpp
@@ -4077,8 +4077,10 @@ static const int kS19ShopAssistantSequenceIds[] = {
Scene19::Scene19(GnapEngine *vm) : Scene(vm) {
_toyGrabCtr = 0;
- _pictureSurface = 0;
_shopAssistantCtr = 0;
+ _currShopAssistantSequenceId = -1;
+ _nextShopAssistantSequenceId = -1;
+
_pictureSurface = nullptr;
}