aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs
diff options
context:
space:
mode:
authorDavid Turner2011-08-11 19:16:50 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:11 +0100
commit86e6ec89efe2a13c6502e215c496535a7f40e678 (patch)
treefbaad530ca5d01ac130d823b5f9c9a16567cd499 /engines/toltecs
parent9b885d0c5018c841fc616d182eb059eb9fd1b7f7 (diff)
downloadscummvm-rg350-86e6ec89efe2a13c6502e215c496535a7f40e678.tar.gz
scummvm-rg350-86e6ec89efe2a13c6502e215c496535a7f40e678.tar.bz2
scummvm-rg350-86e6ec89efe2a13c6502e215c496535a7f40e678.zip
TOLTECS: Fix Compilation due to Graphics::loadThumbnail() API change.
Diffstat (limited to 'engines/toltecs')
-rw-r--r--engines/toltecs/saveload.cpp7
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);
}