diff options
Diffstat (limited to 'engines/sword2/screen.cpp')
-rw-r--r-- | engines/sword2/screen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword2/screen.cpp b/engines/sword2/screen.cpp index a31d2a46c9..0a1b45d2de 100644 --- a/engines/sword2/screen.cpp +++ b/engines/sword2/screen.cpp @@ -31,6 +31,7 @@ #include "common/stdafx.h" #include "common/system.h" +#include "common/events.h" #include "sword2/sword2.h" #include "sword2/defs.h" @@ -1091,7 +1092,7 @@ void Screen::rollCredits() { KeyboardEvent *ke = _vm->keyboardEvent(); - if (ke && ke->keycode == 27) { + if (ke && ke->kbd.keycode == Common::KEYCODE_ESCAPE) { if (!abortCredits) { abortCredits = true; fadeDown(); |