aboutsummaryrefslogtreecommitdiff
path: root/kyra/wsamovie.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-01-07 23:55:50 +0000
committerJohannes Schickel2006-01-07 23:55:50 +0000
commitc6e0fabe97fa812edfbc1b1f99f57cb212db3581 (patch)
tree7fbd0900f071d370951ad795be5ac1ff6e3c71c9 /kyra/wsamovie.cpp
parent202b739c36ca3854dd522e90a67a120d13445ffb (diff)
downloadscummvm-rg350-c6e0fabe97fa812edfbc1b1f99f57cb212db3581.tar.gz
scummvm-rg350-c6e0fabe97fa812edfbc1b1f99f57cb212db3581.tar.bz2
scummvm-rg350-c6e0fabe97fa812edfbc1b1f99f57cb212db3581.zip
Implemented playing of the end sequence, still credits do not show up.
svn-id: r19941
Diffstat (limited to 'kyra/wsamovie.cpp')
-rw-r--r--kyra/wsamovie.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kyra/wsamovie.cpp b/kyra/wsamovie.cpp
index 8c8141b993..46b225c71b 100644
--- a/kyra/wsamovie.cpp
+++ b/kyra/wsamovie.cpp
@@ -36,7 +36,8 @@ void WSAMovieV1::open(const char *filename, int offscreenDecode, uint8 *palBuf)
uint32 flags = 0;
uint32 fileSize;
uint8 *p = _vm->resource()->fileData(filename, &fileSize);
- assert(p);
+ if (!p)
+ return;
const uint8 *wsaData = p;
_numFrames = READ_LE_UINT16(wsaData); wsaData += 2;