aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/cge/events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp
index 97385c3ae1..5f98cf34fb 100644
--- a/engines/cge/events.cpp
+++ b/engines/cge/events.cpp
@@ -126,8 +126,8 @@ void Keyboard::NewKeyboard(Common::Event &event) {
_key[event.kbd.keycode] = false;
} else if (event.type == Common::EVENT_KEYDOWN) {
// Key press
- _key[event.kbd.keycode] = true;
- _current = Keyboard::_code[event.kbd.keycode];
+ _key[keycode] = true;
+ _current = Keyboard::_code[keycode];
if (_client) {
CGEEvent &evt = Evt[EvtHead];