aboutsummaryrefslogtreecommitdiff
path: root/scumm/wiz_he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/wiz_he.cpp')
-rw-r--r--scumm/wiz_he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp
index 8abc0c5d7b..1f17c3ce8d 100644
--- a/scumm/wiz_he.cpp
+++ b/scumm/wiz_he.cpp
@@ -414,7 +414,7 @@ dec_sub2: w -= code;
if (w < 0) {
code += w;
}
- uint8 color = imagePal[*dataPtr++];
+ uint8 color = palPtr[*dataPtr++];
memset(dstPtr, color, code);
dstPtr += code;
} else {
@@ -423,7 +423,7 @@ dec_sub3: w -= code;
code += w;
}
while (code--) {
- *dstPtr++ = imagePal[*dataPtr++];
+ *dstPtr++ = palPtr[*dataPtr++];
}
}
}