[Scummvm-cvs-logs] scummvm master -> 06eef7a4089a16ed0d52dfaf825b90ba0d1a024c

Strangerke Strangerke at scummvm.org
Mon May 30 07:17:45 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
06eef7a408 GNAP: Initialize some unitialized variables in GnapEngine


Commit: 06eef7a4089a16ed0d52dfaf825b90ba0d1a024c
    https://github.com/scummvm/scummvm/commit/06eef7a4089a16ed0d52dfaf825b90ba0d1a024c
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-05-30T07:08:45+02:00

Commit Message:
GNAP: Initialize some unitialized variables in GnapEngine

Changed paths:
    engines/gnap/gnap.cpp



diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp
index ed2d25f..d86d1a4 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() {






More information about the Scummvm-git-logs mailing list