diff options
author | Eugene Sandulenko | 2005-05-26 20:51:01 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-05-26 20:51:01 +0000 |
commit | b59ef3cd71189027d4f2af3d4c5709a48fb025fb (patch) | |
tree | 14b69f3f68ceb6f32fcd6382d43b700682af827b | |
parent | 6e42068c8bda323f41f48d77d76582579da2c5ac (diff) | |
download | scummvm-rg350-b59ef3cd71189027d4f2af3d4c5709a48fb025fb.tar.gz scummvm-rg350-b59ef3cd71189027d4f2af3d4c5709a48fb025fb.tar.bz2 scummvm-rg350-b59ef3cd71189027d4f2af3d4c5709a48fb025fb.zip |
Fix bug #1209059 "GOB: Gobliiins English Floppy version crash"
svn-id: r18268
-rw-r--r-- | gob/video.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gob/video.cpp b/gob/video.cpp index aa4d502183..13b379de6e 100644 --- a/gob/video.cpp +++ b/gob/video.cpp @@ -436,6 +436,9 @@ char vid_spriteUncompressor(byte *sprBuf, int16 srcWidth, int16 srcHeight, int16 bufPos; int16 strLen; + if (!destDesc) + return 1; + if ((destDesc->vidMode & 0x7f) != 0x13) error("vid_spriteUncompressor: Video mode 0x%x is not supported!", destDesc->vidMode & 0x7f); |