aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-05-06 17:08:00 -0400
committerPaul Gilbert2018-05-06 17:08:00 -0400
commitcb6b39ed77705b719d4f98e65b2254a0bbb1ffef (patch)
tree6b3161d8abe552a6680482cf9a99fc95edd1b75a /engines
parent9dcc69c0705d79f3bc85b1f6881a6ed0278d1538 (diff)
downloadscummvm-rg350-cb6b39ed77705b719d4f98e65b2254a0bbb1ffef.tar.gz
scummvm-rg350-cb6b39ed77705b719d4f98e65b2254a0bbb1ffef.tar.bz2
scummvm-rg350-cb6b39ed77705b719d4f98e65b2254a0bbb1ffef.zip
XEEN: Fix display of Auto Notes
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/dialogs/dialogs_quests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_quests.cpp b/engines/xeen/dialogs/dialogs_quests.cpp
index ebf15e9c6c..b27bdb60ef 100644
--- a/engines/xeen/dialogs/dialogs_quests.cpp
+++ b/engines/xeen/dialogs/dialogs_quests.cpp
@@ -157,13 +157,13 @@ void Quests::execute() {
break;
case AUTO_NOTES: {
- count = _vm->getGameID() == GType_Swords ? 49 : MAX_DIALOG_LINES;
+ int max = _vm->getGameID() == GType_Swords ? 49 : MAX_DIALOG_LINES;
for (int idx = 0; idx < count; ++idx)
lines[idx] = "";
count = 0;
headerShown = false;
- for (int idx = 0; idx < count; ++idx) {
+ for (int idx = 0; idx < max; ++idx) {
if (party._worldFlags[idx]) {
if (!count && !headerShown && (_vm->getGameID() == GType_Swords || idx < 72)) {
lines[count++] = title1;