diff options
| -rw-r--r-- | scumm/gfx.cpp | 1 | ||||
| -rw-r--r-- | scumm/object.cpp | 2 | 
2 files changed, 2 insertions, 1 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]; diff --git a/scumm/object.cpp b/scumm/object.cpp index 6054f4a41a..c5d1c042bb 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -356,7 +356,7 @@ void Scumm::drawObject(int obj, int arg)  	ypos = od->y_pos;  	width = od->width >> 3; -	height = od->height &= 0xF8;	// Ender +	height = od->height &= 0xFFFFFFF8;	// Mask out last 3 bits  	if (width == 0 || xpos > _screenEndStrip || xpos + width < _screenStartStrip)  		return;  | 
