From d95703ecf53a1ad51a82256bb61b4604207a3894 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 10 Feb 2025 15:56:16 -0600 Subject: [PATCH] Fix restore party in scenario. Fix #597 --- src/game/boe.actions.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 17d97a92..cdccf162 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -3316,11 +3316,13 @@ void handle_death() { } else if(choice == "load") { fs::path file_to_load = nav_get_or_decode_party(); - if(!file_to_load.empty()) load_party(file_to_load, univ); - if(univ.party.is_alive()) { - if(overall_mode != MODE_STARTUP) - post_load(), finish_load_party(); - return; + if(!file_to_load.empty()){ + if(load_party(file_to_load, univ)){ + finish_load_party(); + if(overall_mode != MODE_STARTUP) + post_load(); + return; + } } } else if(choice == "new") {