aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/BPersistMgr.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-19 18:11:23 +0200
committerEinar Johan Trøan Sømåen2012-07-19 18:11:23 +0200
commit73feff111a98715e87f8e3d72232185650acdc7d (patch)
tree94d6b366c05bea51d1b34c70c3b371c8ff16fa2b /engines/wintermute/Base/BPersistMgr.cpp
parent9c0aff9d8b85e2330fd26db391db15d4f61b01ce (diff)
downloadscummvm-rg350-73feff111a98715e87f8e3d72232185650acdc7d.tar.gz
scummvm-rg350-73feff111a98715e87f8e3d72232185650acdc7d.tar.bz2
scummvm-rg350-73feff111a98715e87f8e3d72232185650acdc7d.zip
WINTERMUTE: Correct 2 savegame-issues
Diffstat (limited to 'engines/wintermute/Base/BPersistMgr.cpp')
-rw-r--r--engines/wintermute/Base/BPersistMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/BPersistMgr.cpp b/engines/wintermute/Base/BPersistMgr.cpp
index 46c2048ac7..c7c3661032 100644
--- a/engines/wintermute/Base/BPersistMgr.cpp
+++ b/engines/wintermute/Base/BPersistMgr.cpp
@@ -404,9 +404,9 @@ Common::String CBPersistMgr::getStringObj() {
char *ret = new char[len + 1];
_loadStream->read(ret, len);
ret[len] = '\0';
- delete[] ret;
Common::String retString = ret;
+ delete[] ret;
if (retString == "(null)") {
retString = "";