aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-06 15:11:13 +0300
committerEugene Sandulenko2014-06-06 15:11:13 +0300
commit6bf20229138f312060c9496d4a99ace58e0a09d2 (patch)
treee73a3b7d7ed28a0f84bf62ae199563f3b999142c /engines/fullpipe
parent4457a967a5e9e1c283d68e929bf33025c5014f37 (diff)
downloadscummvm-rg350-6bf20229138f312060c9496d4a99ace58e0a09d2.tar.gz
scummvm-rg350-6bf20229138f312060c9496d4a99ace58e0a09d2.tar.bz2
scummvm-rg350-6bf20229138f312060c9496d4a99ace58e0a09d2.zip
FULLPIPE: Fix potential null dereference. CID 1148380
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/scenes/scene16.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene16.cpp b/engines/fullpipe/scenes/scene16.cpp
index 9ed355fdd9..ed3c51a6c2 100644
--- a/engines/fullpipe/scenes/scene16.cpp
+++ b/engines/fullpipe/scenes/scene16.cpp
@@ -182,7 +182,7 @@ void sceneHandler16_fillMug() {
mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYOUT), 0, 1);
mq->replaceKeyCode(-1, g_vars->scene16_walkingBoy->_okeyCode);
- if (mq->chain(g_vars->scene16_walkingBoy) || !mq)
+ if (!mq || mq->chain(g_vars->scene16_walkingBoy))
return;
} else {
if (!g_vars->scene16_walkingGirl)