aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hopkins/menu.cpp')
-rw-r--r--engines/hopkins/menu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/hopkins/menu.cpp b/engines/hopkins/menu.cpp
index 7f7e3803cc..18484580e7 100644
--- a/engines/hopkins/menu.cpp
+++ b/engines/hopkins/menu.cpp
@@ -52,6 +52,9 @@ int MenuManager::MENU() {
int frame2Index;
int frame1Index;
+ if (g_system->getEventManager()->shouldQuit())
+ return -1;
+
result = 0;
while (!g_system->getEventManager()->shouldQuit()) {
_vm->_globals.FORET = false;