From 6491ad1cf93a3fe75a759536c68ac590e56e00a3 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 9 Nov 2013 12:49:48 +0200 Subject: TOUCHE: Initialize more variables. CID 1002423 --- engines/touche/touche.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'engines/touche/touche.cpp') diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index 6ca17c86a1..b3e3ca5b50 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -135,6 +135,38 @@ ToucheEngine::ToucheEngine(OSystem *system, Common::Language language) for (uint i = 0; i < NUM_SEQUENCES; i++) memset(&_sequenceEntryTable[i], 0, sizeof(SequenceEntry)); + + _talkListEnd = 0; + _talkListCurrent = 0; + _talkTextRectDefined = 0; + _talkTextDisplayed = 0; + _talkTextInitialized = 0; + _skipTalkText = 0; + _talkTextSpeed = 0; + _keyCharTalkCounter = 0; + _talkTableLastTalkingKeyChar = 0; + _talkTableLastOtherKeyChar = 0; + _talkTableLastStringNum = 0; + + for (uint i = 0; i < NUM_TALK_ENTRIES; i++) + memset(&_talkTable[i], 0, sizeof(TalkEntry)); + + _conversationChoicesUpdated = 0; + _conversationReplyNum = 0; + _conversationEnded = 0; + _conversationNum = 0; + _scrollConversationChoiceOffset = 0; + _currentConversation = 0; + _disableConversationScript = 0; + _conversationAreaCleared = 0; + + for (uint i = 0; i < NUM_CONVERSATION_CHOICES; i++) + memset(&_conversationChoicesTable[i], 0, sizeof(ConversationChoice)); + + for (uint i = 0; i < NUM_KEYCHARS; i++) + _sortedKeyCharsTable[i] = 0; + + _currentKeyCharNum = 0; } ToucheEngine::~ToucheEngine() { -- cgit v1.2.3