diff options
author | Sven Hesse | 2007-04-05 13:36:26 +0000 |
---|---|---|
committer | Sven Hesse | 2007-04-05 13:36:26 +0000 |
commit | c5e7eaf7dbcc18f4d26532f64e6cbf3e8614fc18 (patch) | |
tree | 4640b115575699c4bf9b6debec9fbab07fa3d32b | |
parent | 972b0d036a9dd90d39091b42cf10e955d7637b8a (diff) | |
download | scummvm-rg350-c5e7eaf7dbcc18f4d26532f64e6cbf3e8614fc18.tar.gz scummvm-rg350-c5e7eaf7dbcc18f4d26532f64e6cbf3e8614fc18.tar.bz2 scummvm-rg350-c5e7eaf7dbcc18f4d26532f64e6cbf3e8614fc18.zip |
This should fix bug #1694830
svn-id: r26382
-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) { |