diff options
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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" |