diff options
author | Adrian Frühwirth | 2018-04-21 15:49:36 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-04-21 16:02:51 +0200 |
commit | 08bbef8f7d62c485105908a024acdd836329ca18 (patch) | |
tree | 0b54060089d0bd2304a0884ddd01cae901b63c1c /engines/tucker | |
parent | 2bbed8146fec101db4e5f39ba35b2bb2536389c5 (diff) | |
download | scummvm-rg350-08bbef8f7d62c485105908a024acdd836329ca18.tar.gz scummvm-rg350-08bbef8f7d62c485105908a024acdd836329ca18.tar.bz2 scummvm-rg350-08bbef8f7d62c485105908a024acdd836329ca18.zip |
TUCKER: Improve autosave error handling
Diffstat (limited to 'engines/tucker')
-rw-r--r-- | engines/tucker/saveload.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/tucker/saveload.cpp b/engines/tucker/saveload.cpp index 1720e10a2b..00911b9c44 100644 --- a/engines/tucker/saveload.cpp +++ b/engines/tucker/saveload.cpp @@ -295,7 +295,10 @@ void TuckerEngine::writeAutosave() { return; } - writeSavegame(kAutoSaveSlot, "Autosave", true); + if (writeSavegame(kAutoSaveSlot, "Autosave", true).getCode() != Common::kNoError) { + warning("Can't create autosave in slot %i, game not saved", kAutoSaveSlot); + return; + } } } |