diff options
Diffstat (limited to 'engines/sherlock/sprite.cpp')
-rw-r--r-- | engines/sherlock/sprite.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/sprite.cpp b/engines/sherlock/sprite.cpp index ca70932155..be5a0e0d27 100644 --- a/engines/sherlock/sprite.cpp +++ b/engines/sherlock/sprite.cpp @@ -85,7 +85,8 @@ void Sprite::loadPalette(Common::SeekableReadStream &stream) { assert((size - 12) == PALETTE_SIZE); stream.seek(4 + 12, SEEK_CUR); - stream.read(&_palette[0], PALETTE_SIZE); + for (int idx = 0; idx < PALETTE_SIZE; ++idx) + _palette[idx] = VGA_COLOR_TRANS(stream.readByte()); } /** |