aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/raw_decoder.cpp
diff options
context:
space:
mode:
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);