From 2a6a23e88a8785a7f5f8fda5dc00ab0c71ee9bdc Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 18 Oct 2013 15:59:22 +0300 Subject: DRACI: Initialized class variables. CID 1003405 --- engines/draci/game.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'engines/draci') 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; -- cgit v1.2.3