aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-07-03 20:20:16 +1000
committerPaul Gilbert2011-07-03 20:21:40 +1000
commitd1ef4021bc320cf1a328e58fabfbf4da60c1468e (patch)
tree6a7cff03b71d9269d1231073df9dd07405ad0ea1 /engines
parentecad39e246475603b7ee55f7df73a77c32b60ba6 (diff)
downloadscummvm-rg350-d1ef4021bc320cf1a328e58fabfbf4da60c1468e.tar.gz
scummvm-rg350-d1ef4021bc320cf1a328e58fabfbf4da60c1468e.tar.bz2
scummvm-rg350-d1ef4021bc320cf1a328e58fabfbf4da60c1468e.zip
CGE: Bugfix for keyboard entry
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];