aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/wsamovie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/wsamovie.cpp b/engines/kyra/wsamovie.cpp
index a5f6d01dd6..0aca374346 100644
--- a/engines/kyra/wsamovie.cpp
+++ b/engines/kyra/wsamovie.cpp
@@ -429,7 +429,7 @@ int WSAMovie_v2::open(const char *filename, int unk1, uint8 *palBuf) {
}
for (int i = 1; i < _numFrames; ++i)
- _frameOffsTable[_numFrames] -= frameDataOffs;
+ _frameOffsTable[i] -= frameDataOffs;
// WSA movies without last frame offset need special treatment
if (_frameOffsTable[_numFrames + 1])