diff options
author | Eugene Sandulenko | 2019-07-09 17:07:35 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:16 +0200 |
commit | 2b46fcf06d1635332a48c009c21953d053be69a6 (patch) | |
tree | bf5b6d84e16e19f25d3b106dfdcbc2177193dc6b /engines | |
parent | 8403960c994caf3cbbab58a3f214e40d498e81d5 (diff) | |
download | scummvm-rg350-2b46fcf06d1635332a48c009c21953d053be69a6.tar.gz scummvm-rg350-2b46fcf06d1635332a48c009c21953d053be69a6.tar.bz2 scummvm-rg350-2b46fcf06d1635332a48c009c21953d053be69a6.zip |
HDB: Properly process non-existent save loading
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/hdb.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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); |