diff options
Diffstat (limited to 'kyra/wsamovie.cpp')
-rw-r--r-- | kyra/wsamovie.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kyra/wsamovie.cpp b/kyra/wsamovie.cpp index b3fa637df9..00ba6cec6c 100644 --- a/kyra/wsamovie.cpp +++ b/kyra/wsamovie.cpp @@ -124,7 +124,8 @@ uint16 KyraEngine::wsa_getNumFrames(WSAMovieV1 *wsa) const { void KyraEngine::wsa_play(WSAMovieV1 *wsa, int frameNum, int x, int y, int pageNum) { debug(9, "KyraEngine::wsa_play(0x%X, %d, %d, %d, %d)", wsa, frameNum, x, y, pageNum); - assert(frameNum <= wsa->numFrames); + if (frameNum > wsa->numFrames) + return; uint8 *dst; if (wsa->flags & WF_OFFSCREEN_DECODE) { |