diff options
-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); |