aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/processor.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-14 20:57:30 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commitd9e7fca83c7025d2a91ac5341fb9082ea2b8a0fb (patch)
tree836bc0913d67c3f828369dd3d1b3affa75b67937 /engines/glk/frotz/processor.cpp
parentaf081ad322649918c205e03e4dd29991547981e0 (diff)
downloadscummvm-rg350-d9e7fca83c7025d2a91ac5341fb9082ea2b8a0fb.tar.gz
scummvm-rg350-d9e7fca83c7025d2a91ac5341fb9082ea2b8a0fb.tar.bz2
scummvm-rg350-d9e7fca83c7025d2a91ac5341fb9082ea2b8a0fb.zip
GLK: FROTZ: Fix exiting when application is forcefully closed
Diffstat (limited to 'engines/glk/frotz/processor.cpp')
-rw-r--r--engines/glk/frotz/processor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/frotz/processor.cpp b/engines/glk/frotz/processor.cpp
index eaa7310fc7..343299e27c 100644
--- a/engines/glk/frotz/processor.cpp
+++ b/engines/glk/frotz/processor.cpp
@@ -285,7 +285,7 @@ void Processor::interpret() {
if (end_of_sound_flag)
end_of_sound();
#endif
- } while (!_finished);
+ } while (!shouldQuit() && !_finished);
_finished--;
}