aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap
diff options
context:
space:
mode:
authorStrangerke2016-05-30 07:07:28 +0200
committerStrangerke2016-05-30 07:08:45 +0200
commit06eef7a4089a16ed0d52dfaf825b90ba0d1a024c (patch)
tree06fffd388212a45f975c5feec273e57aa46135a4 /engines/gnap
parent879d8e6603b02451012dfc44939f6e9735221245 (diff)
downloadscummvm-rg350-06eef7a4089a16ed0d52dfaf825b90ba0d1a024c.tar.gz
scummvm-rg350-06eef7a4089a16ed0d52dfaf825b90ba0d1a024c.tar.bz2
scummvm-rg350-06eef7a4089a16ed0d52dfaf825b90ba0d1a024c.zip
GNAP: Initialize some unitialized variables in GnapEngine
Diffstat (limited to 'engines/gnap')
-rw-r--r--engines/gnap/gnap.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp
index ed2d25f3de..d86d1a484c 100644
--- a/engines/gnap/gnap.cpp
+++ b/engines/gnap/gnap.cpp
@@ -138,6 +138,33 @@ GnapEngine::GnapEngine(OSystem *syst, const ADGameDescription *gd) :
_savegameSprites[i] = nullptr;
for (int i = 0; i < 30; i++)
_menuInventorySprites[i] = nullptr;
+
+ _newSceneNum = 0;
+ _sceneDone = false;
+ _inventory = 0;
+ _gameFlags = 0;
+ _hotspotsCount = 0;
+ _sceneClickedHotspot = -1;
+ _isLeavingScene = false;
+ _isStockDatLoaded = false;
+ _newCursorValue = 0;
+ _cursorValue = 0;
+ _verbCursor = 0;
+ _cursorIndex = -1;
+ _leftClickMouseX = 0;
+ _leftClickMouseY = 0;
+ _grabCursorSprite = nullptr;
+ _grabCursorSpriteIndex = 0;
+ _newGrabCursorSpriteIndex = 0;
+ _fullScreenSprite = nullptr;
+ _fullScreenSpriteId = 0;
+ _deviceX1 = 0;
+ _deviceY1 = 0;
+ _deviceX2 = 0;
+ _deviceY2 = 0;
+ _soundTimerIndexA = 0;
+ _soundTimerIndexB = 0;
+ _soundTimerIndexC = 0;
}
GnapEngine::~GnapEngine() {