diff options
-rw-r--r-- | engines/gob/mult_v2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp index 8b7f448be3..d973ea4c22 100644 --- a/engines/gob/mult_v2.cpp +++ b/engines/gob/mult_v2.cpp @@ -652,6 +652,10 @@ void Mult_v2::newCycleAnim(Mult_Object &animObj) { Mult_AnimData &animData = *(animObj.pAnimData); int nAnim = animData.animation; int nLayer = animData.layer; + + if (_vm->_scenery->getAnimLayersCount(nAnim) <= nLayer) + return; + Scenery::AnimLayer *animLayer = _vm->_scenery->getAnimLayer(nAnim, nLayer); if (animData.animType == 4) { |