diff options
Diffstat (limited to 'sword2/function.cpp')
-rw-r--r-- | sword2/function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp index eab786fcb2..4fd756d529 100644 --- a/sword2/function.cpp +++ b/sword2/function.cpp @@ -662,9 +662,9 @@ int32 Logic::fnPlayCredits(int32 *params) { _vm->_graphics->updateDisplay(); - KeyboardEvent ke; + KeyboardEvent *ke = _vm->keyboardEvent(); - if (_vm->_input->readKey(&ke) == RD_OK && ke.keycode == 27) { + if (ke && ke->keycode == 27) { if (!abortCredits) { abortCredits = true; _vm->_graphics->fadeDown(); |