aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cfsml
diff options
context:
space:
mode:
authorMax Horn2009-02-22 21:41:00 +0000
committerMax Horn2009-02-22 21:41:00 +0000
commit4c1349e0f436c273b79073c39ced1b224f6a4371 (patch)
tree2f1b3a6d395c9d659471b615cc1b0e544e33155d /engines/sci/engine/savegame.cfsml
parent1687a5e8d05284a63105eb9ae48d4d11a76d0a5d (diff)
downloadscummvm-rg350-4c1349e0f436c273b79073c39ced1b224f6a4371.tar.gz
scummvm-rg350-4c1349e0f436c273b79073c39ced1b224f6a4371.tar.bz2
scummvm-rg350-4c1349e0f436c273b79073c39ced1b224f6a4371.zip
SCI: Fix what looks like a bug in the save/load system (?)
svn-id: r38795
Diffstat (limited to 'engines/sci/engine/savegame.cfsml')
-rw-r--r--engines/sci/engine/savegame.cfsml4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml
index 0c5189e55a..8aac3e5aa8 100644
--- a/engines/sci/engine/savegame.cfsml
+++ b/engines/sci/engine/savegame.cfsml
@@ -1029,8 +1029,8 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
_global_save_state = retval;
retval->gfx_state = s->gfx_state;
- SavegameMetadata* meta = new SavegameMetadata;
- memset(retval, 0, sizeof(SavegameMetadata));
+ SavegameMetadata *meta = new SavegameMetadata;
+ memset(meta, 0, sizeof(SavegameMetadata));
%CFSMLREAD-ATOMIC SavegameMetadata meta FROM fh ERRVAR read_eof;
if ((meta->savegame_version < FREESCI_MINIMUM_SAVEGAME_VERSION) ||