From 543072804bb636af26100859bd599fd3153cd198 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Thu, 10 Nov 2005 23:07:54 +0000 Subject: Made drawStripToScreen() return when width=0, this prevents copyRectToScreen() from asserting during the cannon sequence in COMI. svn-id: r19552 --- scumm/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index f56562d8cd..caa8a7a93e 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -534,7 +534,7 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i int y = vs->topline + top - _screenTop; int height = bottom - top; - if (height <= 0) + if (height <= 0 || width <= 0) return; // Compute screen etc. buffer pointers -- cgit v1.2.3