diff options
author | Eugene Sandulenko | 2015-11-27 22:57:23 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-11-27 22:57:23 +0100 |
commit | 401518a3dc4b55482fa28bfb066d8255454c39cc (patch) | |
tree | 29352e6441686af578d0016871079266681238de | |
parent | 48e048be8d888c6c52140eeedac2742f5b1319cb (diff) | |
download | scummvm-rg350-401518a3dc4b55482fa28bfb066d8255454c39cc.tar.gz scummvm-rg350-401518a3dc4b55482fa28bfb066d8255454c39cc.tar.bz2 scummvm-rg350-401518a3dc4b55482fa28bfb066d8255454c39cc.zip |
WINTERMUTE: Proper place for pointer check
-rw-r--r-- | engines/wintermute/base/file/base_save_thumb_file.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/base/file/base_save_thumb_file.cpp b/engines/wintermute/base/file/base_save_thumb_file.cpp index acd5363e89..54f7ee7c62 100644 --- a/engines/wintermute/base/file/base_save_thumb_file.cpp +++ b/engines/wintermute/base/file/base_save_thumb_file.cpp @@ -70,11 +70,12 @@ bool BaseSaveThumbFile::open(const Common::String &filename) { delete[] tempFilename; BasePersistenceManager *pm = new BasePersistenceManager(); - Common::String slotFilename = pm->getFilenameForSlot(slot); if (!pm) { return STATUS_FAILED; } + Common::String slotFilename = pm->getFilenameForSlot(slot); + if (DID_FAIL(pm->initLoad(slotFilename))) { delete pm; return STATUS_FAILED; |