diff options
author | Johannes Schickel | 2008-04-23 18:18:11 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-23 18:18:11 +0000 |
commit | 347eb2dc0787df12c186882b215d1550cb2ea823 (patch) | |
tree | 04bef2e64be86cd30c16425ccf3b11abc09812b7 /engines/kyra/wsamovie.cpp | |
parent | 4f108832c3fe47eaea18dd6bc838bcc72b5ac8d0 (diff) | |
download | scummvm-rg350-347eb2dc0787df12c186882b215d1550cb2ea823.tar.gz scummvm-rg350-347eb2dc0787df12c186882b215d1550cb2ea823.tar.bz2 scummvm-rg350-347eb2dc0787df12c186882b215d1550cb2ea823.zip |
- cleanup
- some valgrind warning fixes
svn-id: r31669
Diffstat (limited to 'engines/kyra/wsamovie.cpp')
-rw-r--r-- | engines/kyra/wsamovie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/wsamovie.cpp b/engines/kyra/wsamovie.cpp index a8ffafb355..9da75ed20c 100644 --- a/engines/kyra/wsamovie.cpp +++ b/engines/kyra/wsamovie.cpp @@ -237,7 +237,7 @@ void WSAMovieAmiga::close() { void WSAMovieAmiga::displayFrame(int frameNum, ...) { debugC(9, kDebugLevelMovie, "WSAMovieAmiga::displayFrame(%d)", frameNum); - if (frameNum >= _numFrames || !_opened) + if (frameNum >= _numFrames || frameNum < 0 || !_opened) return; uint8 *dst; @@ -430,7 +430,7 @@ int WSAMovieV2::open(const char *filename, int unk1, uint8 *palBuf) { void WSAMovieV2::displayFrame(int frameNum, ...) { debugC(9, kDebugLevelMovie, "WSAMovieV2::displayFrame(%d, ...)", frameNum); - if (frameNum >= _numFrames || !_opened) + if (frameNum >= _numFrames || frameNum < 0 || !_opened) return; uint8 *dst = 0; |