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 cba0ebeb65..2922df5294 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1046,7 +1046,7 @@ void Gdi::decodeStripEGA(byte *dst, byte *src, int height) {
height = t_height;
dst = t_dst + x * 2;
do {
- if (run == 0) {
+ if (--run == 0) {
data = *src++;
if (data & 0x80) {
run = data & 0x3f;