aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-18 15:59:22 +0300
committerEugene Sandulenko2013-10-18 15:59:22 +0300
commit2a6a23e88a8785a7f5f8fda5dc00ab0c71ee9bdc (patch)
treea3d688357c9eb7447b87db8d0ec5171f7c75f605
parent834ff819df5ec4b17989dfdf325e428a46ca5d02 (diff)
downloadscummvm-rg350-2a6a23e88a8785a7f5f8fda5dc00ab0c71ee9bdc.tar.gz
scummvm-rg350-2a6a23e88a8785a7f5f8fda5dc00ab0c71ee9bdc.tar.bz2
scummvm-rg350-2a6a23e88a8785a7f5f8fda5dc00ab0c71ee9bdc.zip
DRACI: Initialized class variables. CID 1003405
-rw-r--r--engines/draci/game.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index ff5bcefc93..a5c8aa867f 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -81,6 +81,25 @@ Game::Game(DraciEngine *vm) : _vm(vm), _walkingState(vm) {
_walkingMapOverlay = 0;
_walkingShortestPathOverlay = 0;
_walkingObliquePathOverlay = 0;
+ _currentItem = 0;
+ _itemUnderCursor = 0;
+ _previousItemPosition = 0;
+
+ for (i = 0; i < kInventorySlots; i++)
+ _inventory[i] = 0;
+
+ _newRoom = 0;
+ _newGate = 0;
+ _previousRoom = 0;
+ _pushedNewRoom = 0;
+ _pushedNewGate = 0;
+ _currentDialogue = 0;
+ _dialogueArchive = 0;
+ _dialogueBlocks = 0;
+ _dialogueBegin = 0;
+ _dialogueExit = 0;
+ _currentBlock = 0;
+ _lastBlock = 0;
BArchive *initArchive = _vm->_initArchive;
const BAFile *file;