aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/chewy/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/chewy/resource.cpp b/engines/chewy/resource.cpp
index a30548c746..90849cd555 100644
--- a/engines/chewy/resource.cpp
+++ b/engines/chewy/resource.cpp
@@ -210,7 +210,7 @@ TBFChunk *BackgroundResource::getImage(uint num) {
tbf->width = _stream.readUint16LE();
tbf->height = _stream.readUint16LE();
for (int j = 0; j < 3 * 256; j++)
- tbf->palette[j] = _stream.readByte() << 2;
+ tbf->palette[j] = (_stream.readByte() << 2) & 0xff;
tbf->data = new byte[tbf->size];