Made drawStripToScreen() return when width=0, this prevents copyRectToScreen() from asserting during the cannon sequence in COMI.

svn-id: r19552
This commit is contained in:
Gregory Montoir 2005-11-10 23:07:54 +00:00
parent 7276061b35
commit 543072804b

View File

@ -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