diff options
author | Johannes Schickel | 2008-09-16 14:22:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-09-16 14:22:51 +0000 |
commit | 2e9e661d5feaec6d1cb1b61d40cbce4165122edd (patch) | |
tree | 6dc84908bd591493e8a5b0776f406fa6e895ad9e /engines | |
parent | 259d87a8a68d443d2bbb2bcc1887b4f11b7d342e (diff) | |
download | scummvm-rg350-2e9e661d5feaec6d1cb1b61d40cbce4165122edd.tar.gz scummvm-rg350-2e9e661d5feaec6d1cb1b61d40cbce4165122edd.tar.bz2 scummvm-rg350-2e9e661d5feaec6d1cb1b61d40cbce4165122edd.zip |
Cleanup.
svn-id: r34582
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/saveload.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index bb4a7062a1..d16da2c42e 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -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; |