diff options
Diffstat (limited to 'engines/sherlock/resources.cpp')
-rw-r--r-- | engines/sherlock/resources.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/resources.cpp b/engines/sherlock/resources.cpp index 1bedbe9b7b..0d66646286 100644 --- a/engines/sherlock/resources.cpp +++ b/engines/sherlock/resources.cpp @@ -298,10 +298,11 @@ void ImageFile::load(Common::SeekableReadStream &stream, bool skipPalette) { frame._width = stream.readUint16LE() + 1; frame._height = stream.readUint16LE() + 1; frame._paletteBase = stream.readByte(); - frame._offset.x = stream.readUint16LE(); + frame._rleEncoded = stream.readByte() == 1; + frame._offset.x = stream.readByte(); frame._offset.y = stream.readByte(); - frame._rleEncoded = !skipPalette && (frame._offset.x & 0xff) == 1; + frame._rleEncoded = !skipPalette && frame._rleEncoded; if (frame._paletteBase) { // Nibble packed frame data |