diff options
-rw-r--r-- | engines/saga/animation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp index 1d8625a2d2..538d1a78b2 100644 --- a/engines/saga/animation.cpp +++ b/engines/saga/animation.cpp @@ -830,7 +830,7 @@ int Anim::fillFrameOffsets(AnimationData *anim, bool reallyFill) { readS._bigEndian = !_vm->isBigEndian(); // RLE has inversion BE<>LE while (!readS.eos()) { - if (reallyFill) + if (reallyFill && currentFrame <= anim->maxFrame) anim->frameOffsets[currentFrame] = readS.pos(); currentFrame++; |