svn-id: r34582
This commit is contained in:
Johannes Schickel 2008-09-16 14:22:51 +00:00
parent 259d87a8a6
commit 2e9e661d5f

View file

@ -542,16 +542,8 @@ bool ScummEngine::loadInfosFromSlot(int slot, InfoStuff *stuff) {
return false;
}
uint32 type = in->readUint32BE();
// Check for the THMB header. Also, work around a bug which caused
// the chunk type (incorrectly) to be written in LE on LE machines.
if (! (type == MKID_BE('THMB') || (hdr.ver < VER(55) && type == MKID_BE('BMHT')))){
delete in;
if (!Graphics::skipThumbnailHeader(*in))
return false;
}
uint32 size = in->readUint32BE();
in->skip(size - 8);
if (!loadInfos(in, stuff)) {
delete in;