Skip to content

Commit

Permalink
SHERLOCK: 3DO: cel decoder change
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kiewitz committed Jun 11, 2015
1 parent ead934e commit 16b65ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/sherlock/image_file.cpp
Expand Up @@ -348,6 +348,7 @@ static byte imagefile3DO_cel_bitsPerPixelLookupTable[8] = {

// Reads a 3DO .cel/.anim file
void ImageFile3DO::load3DOCelFile(Common::SeekableReadStream &stream) {
int32 streamSize = stream.size();
int32 chunkStartPos = 0;
uint32 chunkTag = 0;
uint32 chunkSize = 0;
Expand Down Expand Up @@ -379,7 +380,7 @@ void ImageFile3DO::load3DOCelFile(Common::SeekableReadStream &stream) {

memset(&plutRGBlookupTable, 0, sizeof(plutRGBlookupTable));

while (!stream.err() && !stream.eos()) {
while (!stream.err() && (stream.pos() < streamSize)) {
chunkStartPos = stream.pos();
chunkTag = stream.readUint32BE();
chunkSize = stream.readUint32BE();
Expand Down

0 comments on commit 16b65ba

Please sign in to comment.