aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tucker/saveload.cpp5
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;
+ }
}
}