From 4b1c0b29ea3e6ab48b5a2fa8101a3a53c8e737ee Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 11 Aug 2013 00:01:22 +0200 Subject: MORTEVIELLE: Add an initialization of _charAnswerCount in initMaxAnswer() --- engines/mortevielle/utils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index 5667e6e5c0..603dc6eae4 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -2877,8 +2877,10 @@ void MortevielleEngine::setPresenceFlags(int roomId) { void MortevielleEngine::initMaxAnswer() { static const byte maxAnswer[9] = { 0, 4, 5, 6, 7, 5, 6, 5, 8 }; - for (int idx = 0; idx < 9; ++idx) + for (int idx = 0; idx < 9; ++idx) { _charAnswerMax[idx] = maxAnswer[idx]; + _charAnswerCount[idx] = 0; + } } /** -- cgit v1.2.3