diff options
-rw-r--r-- | engines/agi/inv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/inv.cpp b/engines/agi/inv.cpp index da56449fda..46dfcb2b43 100644 --- a/engines/agi/inv.cpp +++ b/engines/agi/inv.cpp @@ -114,7 +114,7 @@ void AgiEngine::selectItems(int n) { int fsel = 0; bool exit_select = false; - while (!exit_select) { + while (!exit_select && !(shouldQuit() || _restartGame)) { if (n > 0) printItem(fsel, STATUS_BG, STATUS_FG); |