diff options
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index 0f46ac68c5..b8e40b557d 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -3189,7 +3189,7 @@ void Gdi16Bit::writeRoomColor(byte *dst, byte color) const { } void Gdi::writeRoomColor(byte *dst, byte color) const { - *dst = _roomPalette[color + _paletteMod]; + *dst = _roomPalette[(color + _paletteMod) & 0xFF]; } |