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 0373c6b64f..cb3afd8ded 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1767,7 +1767,7 @@ void Gdi::unkDecodeA(byte *dst, const byte *src, int height) {
cl -= 3;
bits >>= 3;
if (incm) {
- color += incm;
+ color = (byte)((color+incm)&0xFF);
} else {
FILL_BITS;
reps = bits & 0xFF;