aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/events.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-06 23:02:55 -0400
committerPaul Gilbert2017-08-06 23:02:55 -0400
commit27e141eaf4686a652c3a196263e64d082702a2cb (patch)
treedbf11a09797fe9939f028314a7fa64403e6a0c63 /engines/voyeur/events.cpp
parented04ef492994549188b98be0bae42bc32313b967 (diff)
downloadscummvm-rg350-27e141eaf4686a652c3a196263e64d082702a2cb.tar.gz
scummvm-rg350-27e141eaf4686a652c3a196263e64d082702a2cb.tar.bz2
scummvm-rg350-27e141eaf4686a652c3a196263e64d082702a2cb.zip
VOYEUR: Fix exiting game from the VCR screen
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r--engines/voyeur/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp
index 020fe4b692..ae7e300979 100644
--- a/engines/voyeur/events.cpp
+++ b/engines/voyeur/events.cpp
@@ -245,7 +245,7 @@ void EventsManager::pollEvents() {
checkForNextFrameCounter();
Common::Event event;
- while (g_system->getEventManager()->pollEvent(event)) {
+ while (g_system->getEventManager()->pollEvent(event) && !_vm->shouldQuit()) {
// Handle keypress
switch (event.type) {
case Common::EVENT_QUIT: