diff options
Diffstat (limited to 'engines/toltecs')
-rw-r--r-- | engines/toltecs/saveload.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/toltecs/saveload.cpp b/engines/toltecs/saveload.cpp index 9d88b9dce6..b895c7ca62 100644 --- a/engines/toltecs/saveload.cpp +++ b/engines/toltecs/saveload.cpp @@ -53,12 +53,7 @@ ToltecsEngine::kReadSaveHeaderError ToltecsEngine::readSaveHeader(Common::Seekab header.description += (char)in->readByte(); if (loadThumbnail) { - header.thumbnail = new Graphics::Surface(); - assert(header.thumbnail); - if (!Graphics::loadThumbnail(*in, *header.thumbnail)) { - delete header.thumbnail; - header.thumbnail = 0; - } + header.thumbnail = Graphics::loadThumbnail(*in); } else { Graphics::skipThumbnail(*in); } |