FULLPIPE: Add sanity check

This commit is contained in:
Eugene Sandulenko 2014-01-06 22:50:50 +02:00
parent 8a9366527f
commit e26462696d

View File

@ -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);