aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/intro.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sky/intro.cpp')
-rw-r--r--engines/sky/intro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sky/intro.cpp b/engines/sky/intro.cpp
index 2129a1a50a..9528be1905 100644
--- a/engines/sky/intro.cpp
+++ b/engines/sky/intro.cpp
@@ -899,6 +899,7 @@ void Intro::restoreScreen(void) {
bool Intro::escDelay(uint32 msecs) {
+ Common::EventManager *eventMan = _system->getEventManager();
OSystem::Event event;
if (_relDelay == 0) // first call, init with system time
_relDelay = (int32)_system->getMillis();
@@ -907,7 +908,6 @@ bool Intro::escDelay(uint32 msecs) {
int32 nDelay = 0;
do {
- Common::EventManager *eventMan = _system->getEventManager();
while (eventMan->pollEvent(event)) {
if (event.type == OSystem::EVENT_KEYDOWN) {
if (event.kbd.keycode == 27)