aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-19 23:43:07 +0200
committerEugene Sandulenko2013-12-20 00:17:42 +0200
commitb8fcaae6438ef06d13a3c16b21ea2a2cae49f162 (patch)
tree1762a5f7442b7de1845d1962ef1934f2e07a549e
parent0ebca033559b27903278369b5d18ebc54560c431 (diff)
downloadscummvm-rg350-b8fcaae6438ef06d13a3c16b21ea2a2cae49f162.tar.gz
scummvm-rg350-b8fcaae6438ef06d13a3c16b21ea2a2cae49f162.tar.bz2
scummvm-rg350-b8fcaae6438ef06d13a3c16b21ea2a2cae49f162.zip
FULLPIPE: Fix explicit null dereference. CID 1138361
-rw-r--r--engines/fullpipe/scenes/scene04.cpp4
1 files changed, 4 insertions, 0 deletions
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);