aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/credits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1/credits.cpp')
-rw-r--r--engines/sword1/credits.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sword1/credits.cpp b/engines/sword1/credits.cpp
index a8a4446d56..06539f986f 100644
--- a/engines/sword1/credits.cpp
+++ b/engines/sword1/credits.cpp
@@ -32,6 +32,7 @@
#include "common/file.h"
#include "common/util.h"
+#include "common/events.h"
#include "common/system.h"
@@ -274,7 +275,8 @@ void CreditsPlayer::delay(int msecs) {
OSystem::Event event;
uint32 start = _system->getMillis();
do {
- while (_system->pollEvent(event)) {
+ Common::EventManager *eventMan = _system->getEventManager();
+ while (eventMan->pollEvent(event)) {
switch (event.type) {
case OSystem::EVENT_QUIT:
SwordEngine::_systemVars.engineQuit = true;