aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/savegame.cfsml4
-rw-r--r--engines/sci/engine/savegame.cpp4
2 files changed, 4 insertions, 4 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) ||
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index b52f4515ce..b7255afd44 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -4980,8 +4980,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));
// Auto-generated CFSML data reader code
#line 763 "engines/sci/engine/savegame.cfsml"