aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-19 23:34:26 +0200
committerEugene Sandulenko2013-12-20 00:17:42 +0200
commit0ebca033559b27903278369b5d18ebc54560c431 (patch)
treeb379e0ac327b3a56301ed1877066c1f00792d84f /engines
parentf91f043b103099873ef2ff691c9bd2fc3f2863c8 (diff)
downloadscummvm-rg350-0ebca033559b27903278369b5d18ebc54560c431.tar.gz
scummvm-rg350-0ebca033559b27903278369b5d18ebc54560c431.tar.bz2
scummvm-rg350-0ebca033559b27903278369b5d18ebc54560c431.zip
FULLPIPE: Fix explicit null dereference. CID 1138360
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/motion.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index ab8815e5f9..727cb4c40c 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -1566,9 +1566,13 @@ void MGM::updateAnimStatics(StaticANIObject *ani, int staticsId) {
ani->queueMessageQueue(0);
ani->_movement->gotoLastFrame();
ani->_statics = ani->_movement->_staticsObj2;
+
+ int x = ani->_movement->_ox;
+ int y = ani->_movement->_oy;
+
ani->_movement = 0;
- ani->setOXY(ani->_movement->_ox, ani->_movement->_oy);
+ ani->setOXY(x, y);
}
if (ani->_statics) {