diff options
author | Johannes Schickel | 2006-06-03 18:38:36 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-06-03 18:38:36 +0000 |
commit | 392fe0cad1584a3bd50497599cb5181ce9b2cbb4 (patch) | |
tree | 297873c645c8a589903cbe3acf09bab9fde61d10 /engines | |
parent | 4a6b2a32761ed1f6715a86105e9ce31ed2e0fe66 (diff) | |
download | scummvm-rg350-392fe0cad1584a3bd50497599cb5181ce9b2cbb4.tar.gz scummvm-rg350-392fe0cad1584a3bd50497599cb5181ce9b2cbb4.tar.bz2 scummvm-rg350-392fe0cad1584a3bd50497599cb5181ce9b2cbb4.zip |
Don't allow creation of save file when the user quits the game while the intro.
svn-id: r22904
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/saveload.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/saveload.cpp b/engines/kyra/saveload.cpp index 827a97a801..13caa36ed9 100644 --- a/engines/kyra/saveload.cpp +++ b/engines/kyra/saveload.cpp @@ -244,6 +244,7 @@ void KyraEngine::loadGame(const char *fileName) { void KyraEngine::saveGame(const char *fileName, const char *saveName) { debugC(9, kDebugLevelMain, "saveGame('%s', '%s')", fileName, saveName); Common::OutSaveFile *out; + if (_quitFlag) return; if (!(out = _saveFileMan->openForSaving(fileName))) { warning("Can't create file '%s', game not saved", fileName); |