aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRetro-Junk2016-09-24 15:07:58 +0300
committerEugene Sandulenko2016-09-24 17:33:18 +0200
commitedf9828a1106d55cfc694d36c6d21f1e13c918c9 (patch)
tree510f64584e085bb5e135b3a96f5fb5ff68f96898
parentfb66de5bb97baedb9f4780a680c2da0b03d529d7 (diff)
downloadscummvm-rg350-edf9828a1106d55cfc694d36c6d21f1e13c918c9.tar.gz
scummvm-rg350-edf9828a1106d55cfc694d36c6d21f1e13c918c9.tar.bz2
scummvm-rg350-edf9828a1106d55cfc694d36c6d21f1e13c918c9.zip
FULLPIPE: Fix MessageQueue instantination in MctlGraph::makeQueue
-rw-r--r--engines/fullpipe/motion.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index ba627a96a1..4d9218c9f0 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -2225,9 +2225,7 @@ MessageQueue *MctlGraph::makeQueue(StaticANIObject *obj, int xpos, int ypos, int
}
if (obj->_ox == xpos && obj->_oy == ypos) {
- g_fp->_globalMessageQueueList->compact();
-
- MessageQueue *mq = new MessageQueue();
+ MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
if (staticsId && obj->_statics->_staticsId != staticsId) {
int idxwalk = getDirByStatics(idx, staticsId);