ALL: Use Graphics::skipThumbnail() where appropriate.
This commit is contained in:
parent
d1688d22d4
commit
b4b6ce0954
2 changed files with 2 additions and 11 deletions
|
@ -290,11 +290,7 @@ int AgiEngine::loadGame(const char *fileName, bool checkId) {
|
|||
|
||||
if (saveVersion >= 4) {
|
||||
// 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);
|
||||
delete thumbnail;
|
||||
thumbnail = 0;
|
||||
Graphics::skipThumbnail(*in);
|
||||
|
||||
in->readUint32BE(); // save date
|
||||
in->readUint16BE(); // save time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue