HDB: Properly process non-existent save loading

This commit is contained in:
Eugene Sandulenko 2019-07-09 17:07:35 +02:00
parent 8403960c99
commit 2b46fcf06d

View File

@ -776,11 +776,8 @@ Common::Error HDBGame::run() {
startMap(mapname);
} else {
if (ConfMan.hasKey("save_slot")) {
loadGameState(ConfMan.getInt("save_slot"));
} else {
if (!ConfMan.hasKey("save_slot") || (loadGameState(ConfMan.getInt("save_slot")).getCode() != Common::kNoError))
startMap("MAP00");
}
}
//_window->openDialog("Sgt. Filibuster", 0, "You address me as 'sarge' or 'sergeant' or get your snappin' teeth kicked in! Got me?", 0, NULL);