aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-06 22:50:50 +0200
committerEugene Sandulenko2014-01-06 23:24:36 +0200
commite26462696d6ca8b05b790b615c649ee444c7b565 (patch)
tree50d61bff1f8db956e2095437ecbc116102850aac
parent8a9366527f26cdd853779b4f84d2c951a995be9f (diff)
downloadscummvm-rg350-e26462696d6ca8b05b790b615c649ee444c7b565.tar.gz
scummvm-rg350-e26462696d6ca8b05b790b615c649ee444c7b565.tar.bz2
scummvm-rg350-e26462696d6ca8b05b790b615c649ee444c7b565.zip
FULLPIPE: Add sanity check
-rw-r--r--engines/fullpipe/scenes/scene25.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp
index 574e3ddace..ba07c3e5b9 100644
--- a/engines/fullpipe/scenes/scene25.cpp
+++ b/engines/fullpipe/scenes/scene25.cpp
@@ -509,6 +509,9 @@ void sceneHandler25_walkOnLadder(StaticANIObject *ani, Common::Point *pnt, Messa
ani->_movement->setDynamicPhaseIndex(idx);
} else {
+ if (!lastEx)
+ error("sceneHandler25_walkOnLadder(): Incorrect state. Please report this to sev");
+
ani->changeStatics2(ani->getMovementById(lastEx->_messageNum)->_staticsObj1->_staticsId);
ani->setOXY(newx, newy);
ani->restartMessageQueue(mq);