Don't allow creation of save file when the user quits the game while the intro.

svn-id: r22904
This commit is contained in:
Johannes Schickel 2006-06-03 18:38:36 +00:00
parent 4a6b2a3276
commit 392fe0cad1

View file

@ -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);