aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tony/input.cpp')
-rw-r--r--engines/tony/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tony/input.cpp b/engines/tony/input.cpp
index 2a8cdc10c3..7d663c1465 100644
--- a/engines/tony/input.cpp
+++ b/engines/tony/input.cpp
@@ -52,7 +52,7 @@ void RMInput::poll() {
_leftClickMouse = _leftReleaseMouse = _rightClickMouse = _rightReleaseMouse = false;
// Get pending events
- while (g_system->getEventManager()->pollEvent(_event)) {
+ while (g_system->getEventManager()->pollEvent(_event) && !_vm->shouldQuit()) {
switch (_event.type) {
case Common::EVENT_MOUSEMOVE:
case Common::EVENT_LBUTTONDOWN: