TOLTECS: Fix Compilation due to Graphics::loadThumbnail() API change.

This commit is contained in:
David Turner 2011-08-11 19:16:50 +00:00 committed by Willem Jan Palenstijn
parent 9b885d0c50
commit 86e6ec89ef

View File

@ -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);
}