diff options
author | Torbjörn Andersson | 2007-09-01 11:04:34 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-09-01 11:04:34 +0000 |
commit | ee2b33376fe6493a7e77bd63cd4d3542b9315852 (patch) | |
tree | af05f5233b44eed8613aff201de3c48252eff219 | |
parent | e3b6d81e8288d6558ad2021b3a8aa5f5cca69154 (diff) | |
download | scummvm-rg350-ee2b33376fe6493a7e77bd63cd4d3542b9315852.tar.gz scummvm-rg350-ee2b33376fe6493a7e77bd63cd4d3542b9315852.tar.bz2 scummvm-rg350-ee2b33376fe6493a7e77bd63cd4d3542b9315852.zip |
Don't go out of bounds when filling anim->frameOffsets[].
svn-id: r28782
-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++; |