diff options
author | Johannes Schickel | 2005-11-18 23:55:31 +0000 |
---|---|---|
committer | Johannes Schickel | 2005-11-18 23:55:31 +0000 |
commit | 5eb3e11b46ce694057c8c7de413df96fbc34c728 (patch) | |
tree | 48e6463aea9baa6fc00fd962254bc12dac1fe638 /kyra/wsamovie.cpp | |
parent | a69fe434b981d105df84b20e036b7f45c9fc8801 (diff) | |
download | scummvm-rg350-5eb3e11b46ce694057c8c7de413df96fbc34c728.tar.gz scummvm-rg350-5eb3e11b46ce694057c8c7de413df96fbc34c728.tar.bz2 scummvm-rg350-5eb3e11b46ce694057c8c7de413df96fbc34c728.zip |
Implemented basic input handling and fixed mask drawing.
svn-id: r19657
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) { |