From 392fe0cad1584a3bd50497599cb5181ce9b2cbb4 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 3 Jun 2006 18:38:36 +0000 Subject: Don't allow creation of save file when the user quits the game while the intro. svn-id: r22904 --- engines/kyra/saveload.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3