From 2b46fcf06d1635332a48c009c21953d053be69a6 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 9 Jul 2019 17:07:35 +0200 Subject: HDB: Properly process non-existent save loading --- engines/hdb/hdb.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 462cb81d6d..fa54390965 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -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); -- cgit v1.2.3