From 6bf20229138f312060c9496d4a99ace58e0a09d2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 6 Jun 2014 15:11:13 +0300 Subject: FULLPIPE: Fix potential null dereference. CID 1148380 --- engines/fullpipe/scenes/scene16.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/fullpipe') 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) -- cgit v1.2.3