diff options
author | Alyssa Milburn | 2011-08-22 20:17:49 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-08-22 20:17:49 +0200 |
commit | 8b388b6829885bbeb223991626f6b457115dabeb (patch) | |
tree | c7e7c337d6bdf28bde5946b7129473a3ff23e26e /engines/cge | |
parent | 84063dc9727a9f55e09d39574027beab695680e6 (diff) | |
download | scummvm-rg350-8b388b6829885bbeb223991626f6b457115dabeb.tar.gz scummvm-rg350-8b388b6829885bbeb223991626f6b457115dabeb.tar.bz2 scummvm-rg350-8b388b6829885bbeb223991626f6b457115dabeb.zip |
CGE: Fix compilation after thumbnail changes.
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/cge_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp index e9ea9bd428..0309f9f724 100644 --- a/engines/cge/cge_main.cpp +++ b/engines/cge/cge_main.cpp @@ -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; |