aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/town.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/xeen/town.cpp b/engines/xeen/town.cpp
index 02e0990e96..0e2f2e71d3 100644
--- a/engines/xeen/town.cpp
+++ b/engines/xeen/town.cpp
@@ -244,10 +244,13 @@ int Town::townAction(TownAction actionId) {
do {
townWait();
charP = doTownOptions(charP);
+ if (_vm->shouldQuit())
+ return 0;
+
title = createTownText(*charP);
screen._windows[10].writeString(title);
drawButtons(&screen);
- } while (!_vm->shouldQuit() && _buttonValue != Common::KEYCODE_ESCAPE);
+ } while (_buttonValue != Common::KEYCODE_ESCAPE);
switch (actionId) {
case BLACKSMITH: