aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
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