From 08bbef8f7d62c485105908a024acdd836329ca18 Mon Sep 17 00:00:00 2001 From: Adrian Frühwirth Date: Sat, 21 Apr 2018 15:49:36 +0200 Subject: TUCKER: Improve autosave error handling --- engines/tucker/saveload.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/tucker') 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; + } } } -- cgit v1.2.3