From b8fcaae6438ef06d13a3c16b21ea2a2cae49f162 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 19 Dec 2013 23:43:07 +0200 Subject: FULLPIPE: Fix explicit null dereference. CID 1138361 --- engines/fullpipe/scenes/scene04.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/fullpipe/scenes') diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp index 28b2d77d5b..c8712d2a78 100644 --- a/engines/fullpipe/scenes/scene04.cpp +++ b/engines/fullpipe/scenes/scene04.cpp @@ -982,6 +982,10 @@ void sceneHandler04_leaveScene() { } } + if (!ex) { + error("sceneHandler04_leaveScene(): Cannot find exit"); + } + ex->_y = g_vars->scene04_bottle->_oy - 304; mq->chain(0); -- cgit v1.2.3