From 06eef7a4089a16ed0d52dfaf825b90ba0d1a024c Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 30 May 2016 07:07:28 +0200 Subject: GNAP: Initialize some unitialized variables in GnapEngine --- engines/gnap/gnap.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'engines/gnap') 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() { -- cgit v1.2.3