TUCKER: Improve autosave error handling

This commit is contained in:
Adrian Frühwirth 2018-04-21 15:49:36 +02:00
parent 2bbed8146f
commit 08bbef8f7d

View File

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