aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-29 15:22:16 +0000
committerJohannes Schickel2009-08-29 15:22:16 +0000
commit4928ca23cc7b74008feae0561ceb4ac630d6c9dc (patch)
tree1e445612f7e934e70271ee240db86179fc3caa7d
parente12d3c966a737551a092d450329c843a774256b9 (diff)
downloadscummvm-rg350-4928ca23cc7b74008feae0561ceb4ac630d6c9dc.tar.gz
scummvm-rg350-4928ca23cc7b74008feae0561ceb4ac630d6c9dc.tar.bz2
scummvm-rg350-4928ca23cc7b74008feae0561ceb4ac630d6c9dc.zip
Fix possible corruption of restart game save in Kyrandia 1.
svn-id: r43803
-rw-r--r--engines/kyra/kyra_lok.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/kyra_lok.cpp b/engines/kyra/kyra_lok.cpp
index 4ff7707641..583100e485 100644
--- a/engines/kyra/kyra_lok.cpp
+++ b/engines/kyra/kyra_lok.cpp
@@ -407,8 +407,9 @@ void KyraEngine_LoK::startup() {
_screen->showMouse();
_gui->buttonMenuCallback(0);
_menuDirectlyToLoad = false;
- } else
+ } else if (!shouldQuit()) {
saveGameState(0, "New game", 0);
+ }
} else {
_screen->setFont(Screen::FID_8_FNT);
loadGameStateCheck(_gameToLoad);