TUCKER: Improve autosave error handling
This commit is contained in:
parent
2bbed8146f
commit
08bbef8f7d
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue