aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene08.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-04 17:06:23 +0200
committerEugene Sandulenko2014-01-04 17:06:23 +0200
commit8515164117c8a4b301c465008a771d50117cef02 (patch)
tree77531fe203582884a71881f593b3636bad68236d /engines/fullpipe/scenes/scene08.cpp
parent0745e61e70ae37a9c10448ad2c96d9e632c8ee58 (diff)
downloadscummvm-rg350-8515164117c8a4b301c465008a771d50117cef02.tar.gz
scummvm-rg350-8515164117c8a4b301c465008a771d50117cef02.tar.bz2
scummvm-rg350-8515164117c8a4b301c465008a771d50117cef02.zip
FULLPIPE: Proper use of copying consturctor for ExCommand
Diffstat (limited to 'engines/fullpipe/scenes/scene08.cpp')
-rw-r--r--engines/fullpipe/scenes/scene08.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp
index ada63ef22d..716ca1f593 100644
--- a/engines/fullpipe/scenes/scene08.cpp
+++ b/engines/fullpipe/scenes/scene08.cpp
@@ -282,7 +282,7 @@ void sceneHandler08_finishArcade() {
void sceneHandler08_jumpOff(ExCommand *cmd) {
MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
- mq->addExCommandToEnd(new ExCommand(cmd));
+ mq->addExCommandToEnd(cmd->createClone());
mq->setFlags(mq->getFlags() | 1);
g_fp->_globalMessageQueueList->addMessageQueue(mq);