aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/raw_decoder.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-01-03 18:18:53 -0800
committerPaul Gilbert2019-01-03 18:18:53 -0800
commitc4c14b593ba254d1f3f1159b1b23c166667a7e56 (patch)
tree2b9b7963b0ab075f2a1d33a92e870869eeaa08fd /engines/glk/raw_decoder.cpp
parentd5bf1396def859fcdbfc541e19df37f1dca5552c (diff)
downloadscummvm-rg350-c4c14b593ba254d1f3f1159b1b23c166667a7e56.tar.gz
scummvm-rg350-c4c14b593ba254d1f3f1159b1b23c166667a7e56.tar.bz2
scummvm-rg350-c4c14b593ba254d1f3f1159b1b23c166667a7e56.zip
GLK: FROTZ: Fixes for picture decoding
Diffstat (limited to 'engines/glk/raw_decoder.cpp')
-rw-r--r--engines/glk/raw_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/raw_decoder.cpp b/engines/glk/raw_decoder.cpp
index e0899e09dc..659b333cac 100644
--- a/engines/glk/raw_decoder.cpp
+++ b/engines/glk/raw_decoder.cpp
@@ -56,7 +56,7 @@ bool RawDecoder::loadStream(Common::SeekableReadStream &stream) {
stream.readByte();
_surface.create(width, height, Graphics::PixelFormat::createFormatCLUT8());
- assert((stream.size() - stream.pos()) == (int)(width * height));
+ assert((stream.size() - stream.pos()) <= (int)(width * height));
byte *pixels = (byte *)_surface.getPixels();
stream.read(pixels, width * height);