aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra_v1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index c055735bab..4615a0a5fc 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -370,7 +370,7 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop) {
}
GUI *guiInstance = gui();
- if (guiInstance)
+ if (guiInstance && keys)
return guiInstance->processButtonList(buttonList, keys | 0x8000, mouseWheel);
else
return keys;