From e4e699beb25a69d41878d884f763608636d4ba7d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 1 Feb 2014 20:21:07 +0200 Subject: FULLPIPE: Check for potential null dereference. Matches original --- engines/fullpipe/lift.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/fullpipe/lift.cpp') diff --git a/engines/fullpipe/lift.cpp b/engines/fullpipe/lift.cpp index 8acea6a59d..13e2af31ee 100644 --- a/engines/fullpipe/lift.cpp +++ b/engines/fullpipe/lift.cpp @@ -220,8 +220,12 @@ void FullpipeEngine::lift_init(Scene *sc, int enterSeq, int exitSeq) { } void FullpipeEngine::lift_exitSeq(ExCommand *cmd) { - if (cmd) - _globalMessageQueueList->getMessageQueueById(cmd->_parId)->activateExCommandsByKind(34); + if (cmd) { + MessageQueue *mq = _globalMessageQueueList->getMessageQueueById(cmd->_parId); + + if (mq) + mq->activateExCommandsByKind(34); + } _lift->changeStatics2(ST_LFT_CLOSED); -- cgit v1.2.3