diff options
Diffstat (limited to 'engines/sci/engine/savegame.cfsml')
-rw-r--r-- | engines/sci/engine/savegame.cfsml | 4 |
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) || |