From 86e6ec89efe2a13c6502e215c496535a7f40e678 Mon Sep 17 00:00:00 2001 From: David Turner Date: Thu, 11 Aug 2011 19:16:50 +0000 Subject: TOLTECS: Fix Compilation due to Graphics::loadThumbnail() API change. --- engines/toltecs/saveload.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'engines/toltecs') 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); } -- cgit v1.2.3