aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-07 09:14:41 +0200
committerEugene Sandulenko2016-09-07 09:45:18 +0200
commitb4153bef61519bbb16e99eda89d2faae8bf10c73 (patch)
treec3b4e25e7495801a845753a802309a34544e7d11 /engines/fullpipe
parent38a0bdb263403fc01c166614a44aba28be88a588 (diff)
downloadscummvm-rg350-b4153bef61519bbb16e99eda89d2faae8bf10c73.tar.gz
scummvm-rg350-b4153bef61519bbb16e99eda89d2faae8bf10c73.tar.bz2
scummvm-rg350-b4153bef61519bbb16e99eda89d2faae8bf10c73.zip
FULLPIPE: Fix invalid read
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/statics.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 25ab6cd6c7..1d88b3bf5d 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -397,6 +397,9 @@ void StaticANIObject::startMQIfIdle(int qId, int flag) {
}
bool StaticANIObject::isIdle() {
+ if (_objtype != kObjTypeStaticANIObject)
+ return true;
+
if (_messageQueueId) {
MessageQueue *m = g_fp->_globalMessageQueueList->getMessageQueueById(_messageQueueId);