diff options
author | Christoph Mallon | 2011-08-07 14:34:15 +0200 |
---|---|---|
committer | Christoph Mallon | 2011-08-07 15:19:09 +0200 |
commit | b4b6ce0954f4a636be0b7b88197376b3917af31f (patch) | |
tree | 4eeaafca50a0c5ef71ecc2f083f19914b59aaa44 /engines/saga | |
parent | d1688d22d4ad9919d31e1364e9f36e795de929a4 (diff) | |
download | scummvm-rg350-b4b6ce0954f4a636be0b7b88197376b3917af31f.tar.gz scummvm-rg350-b4b6ce0954f4a636be0b7b88197376b3917af31f.tar.bz2 scummvm-rg350-b4b6ce0954f4a636be0b7b88197376b3917af31f.zip |
ALL: Use Graphics::skipThumbnail() where appropriate.
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/saveload.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/saga/saveload.cpp b/engines/saga/saveload.cpp index 8d7b718c09..9e0789fdaf 100644 --- a/engines/saga/saveload.cpp +++ b/engines/saga/saveload.cpp @@ -295,12 +295,7 @@ void SagaEngine::load(const char *fileName) { if (_saveHeader.version >= 6) { // We don't need the thumbnail here, so just read it and discard it - Graphics::Surface *thumbnail = new Graphics::Surface(); - assert(thumbnail); - Graphics::loadThumbnail(*in, *thumbnail); - thumbnail->free(); - delete thumbnail; - thumbnail = 0; + Graphics::skipThumbnail(*in); in->readUint32BE(); // save date in->readUint16BE(); // save time |