aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2003-01-12 13:58:16 +0000
committerMax Horn2003-01-12 13:58:16 +0000
commitaa60f424bacaffe6c8d75703ec0ce267e0d75e26 (patch)
tree88f86c7a06df980b3619e54a8f5e1caa7aecc69d /scumm/gfx.cpp
parent5db47f56d0cd3bcfd8a62d6c81027777af16eb8e (diff)
downloadscummvm-rg350-aa60f424bacaffe6c8d75703ec0ce267e0d75e26.tar.gz
scummvm-rg350-aa60f424bacaffe6c8d75703ec0ce267e0d75e26.tar.bz2
scummvm-rg350-aa60f424bacaffe6c8d75703ec0ce267e0d75e26.zip
fix banjo duel crash
svn-id: r6427
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 04deb08954..1d55780bcf 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -851,6 +851,7 @@ byte Scumm::isMaskActiveAt(int l, int t, int r, int b, byte *mem)
void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int h,
int stripnr, int numstrip, byte flag)
{
+ assert(h > 0);
byte *backbuff_ptr, *bgbak_ptr, *smap_ptr;
int i;
byte *zplane_list[9];