aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/mult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/mult.cpp')
-rw-r--r--engines/gob/mult.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/gob/mult.cpp b/engines/gob/mult.cpp
index c4d45ee4bd..2916e246a0 100644
--- a/engines/gob/mult.cpp
+++ b/engines/gob/mult.cpp
@@ -24,6 +24,7 @@
*/
#include "common/endian.h"
+#include "common/events.h"
#include "gob/gob.h"
#include "gob/mult.h"
@@ -197,7 +198,7 @@ void Mult::playMult(int16 startFrame, int16 endFrame, char checkEscape,
_frame++;
_vm->_util->waitEndFrame();
- } while (!stop && !stopNoClear && !_vm->_quit);
+ } while (!stop && !stopNoClear && !g_system->getEventManager()->shouldQuit());
if (!stopNoClear) {
if (_animDataAllocated) {