aboutsummaryrefslogtreecommitdiff
path: root/engines/touche
diff options
context:
space:
mode:
authorEugene Sandulenko2013-11-09 12:49:48 +0200
committerEugene Sandulenko2013-11-09 12:49:48 +0200
commit6491ad1cf93a3fe75a759536c68ac590e56e00a3 (patch)
tree0b70ca6d9cb44179d8c78e4d2d2dd595073d670c /engines/touche
parentc65e8a31a3ca994bb2516b0ab100134cb25f4683 (diff)
downloadscummvm-rg350-6491ad1cf93a3fe75a759536c68ac590e56e00a3.tar.gz
scummvm-rg350-6491ad1cf93a3fe75a759536c68ac590e56e00a3.tar.bz2
scummvm-rg350-6491ad1cf93a3fe75a759536c68ac590e56e00a3.zip
TOUCHE: Initialize more variables. CID 1002423
Diffstat (limited to 'engines/touche')
-rw-r--r--engines/touche/touche.cpp32
1 files changed, 32 insertions, 0 deletions
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() {