aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-08-11 00:01:22 +0200
committerStrangerke2013-08-11 00:02:57 +0200
commit4b1c0b29ea3e6ab48b5a2fa8101a3a53c8e737ee (patch)
treec6ceaa6f96d78170bad4563df707d0d26c08b08b
parent4e08dc04da97ffe6739a6100e39c6bab4f2717c0 (diff)
downloadscummvm-rg350-4b1c0b29ea3e6ab48b5a2fa8101a3a53c8e737ee.tar.gz
scummvm-rg350-4b1c0b29ea3e6ab48b5a2fa8101a3a53c8e737ee.tar.bz2
scummvm-rg350-4b1c0b29ea3e6ab48b5a2fa8101a3a53c8e737ee.zip
MORTEVIELLE: Add an initialization of _charAnswerCount in initMaxAnswer()
-rw-r--r--engines/mortevielle/utils.cpp4
1 files changed, 3 insertions, 1 deletions
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;
+ }
}
/**