mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
CGE: Fix compilation after thumbnail changes.
This commit is contained in:
parent
84063dc972
commit
8b388b6829
@ -378,8 +378,8 @@ bool CGEEngine::readSavegameHeader(Common::InSaveFile *in, SavegameHeader &heade
|
||||
while ((ch = (char)in->readByte()) != '\0') header.saveName += ch;
|
||||
|
||||
// Get the thumbnail
|
||||
header.thumbnail = new Graphics::Surface();
|
||||
if (!Graphics::loadThumbnail(*in, *header.thumbnail)) {
|
||||
header.thumbnail = Graphics::loadThumbnail(*in);
|
||||
if (!header.thumbnail) {
|
||||
delete header.thumbnail;
|
||||
header.thumbnail = NULL;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user