diff options
-rw-r--r-- | engines/wintermute/base/base_save_thumb_helper.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/wintermute/base/base_save_thumb_helper.cpp b/engines/wintermute/base/base_save_thumb_helper.cpp index d4df1dffb4..17376e4c49 100644 --- a/engines/wintermute/base/base_save_thumb_helper.cpp +++ b/engines/wintermute/base/base_save_thumb_helper.cpp @@ -97,15 +97,12 @@ bool BaseSaveThumbHelper::storeThumbnail(bool doFlip) { ////////////////////////////////////////////////////////////////////////// bool BaseSaveThumbHelper::storeScummVMThumbNail(bool doFlip) { - delete _thumbnail; - _thumbnail = NULL; + delete _scummVMThumb; + _scummVMThumb = NULL; - if (_gameRef->_thumbnailWidth > 0 && _gameRef->_thumbnailHeight > 0) { - - _scummVMThumb = storeThumb(doFlip, kThumbnailWidth, kThumbnailHeight2); - if (!_scummVMThumb) { - return STATUS_FAILED; - } + _scummVMThumb = storeThumb(doFlip, kThumbnailWidth, kThumbnailHeight2); + if (!_scummVMThumb) { + return STATUS_FAILED; } return STATUS_OK; } |