diff options
author | Martin Kiewitz | 2010-07-17 17:58:50 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-17 17:58:50 +0000 |
commit | 625af1260b2b6a28b57726564547d740fce35cad (patch) | |
tree | ccd043ea0b09c3502e85572a48c8716b009bc997 /engines/sci/engine/savegame.cpp | |
parent | 8c31dd7e854ef19b28bc5f5ef8b1e5b5073927bd (diff) | |
download | scummvm-rg350-625af1260b2b6a28b57726564547d740fce35cad.tar.gz scummvm-rg350-625af1260b2b6a28b57726564547d740fce35cad.tar.bz2 scummvm-rg350-625af1260b2b6a28b57726564547d740fce35cad.zip |
SCI: checking if within kernel function before overwrite a save (thx @ digitall)
svn-id: r50962
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 0fe5f2088a..5690969065 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -722,6 +722,7 @@ bool gamestate_save(EngineState *s, Common::WriteStream *fh, const char* savenam meta.script0_size = script0->size; meta.game_object_offset = g_sci->getGameObject().offset; + // Checking here again if (s->executionStackBase) { warning("Cannot save from below kernel function"); return false; |