From 041b08a9afdba70ad93296d8447ccf0728695a5c Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 15 Jan 2025 19:21:10 -0600 Subject: [PATCH] don't overwrite debug party from editor --- src/game/boe.main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 01f47c88c..186b47ac0 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -86,6 +86,7 @@ boost::optional scen_arg_path; bool scen_arg_start = false; boost::optional scen_arg_town, scen_arg_town_entrance; boost::optional scen_arg_out_sec, scen_arg_loc; +extern std::string last_load_file; struct cParseEntrance { boost::optional& opt; @@ -388,6 +389,10 @@ static void process_args(int argc, char* argv[]) { static void handle_scenario_args() { bool resetting = false; if(scen_arg_path){ + // When changing the command-line party's scenario status, clear last_load_file + // so the player will be prompted to Save As. + last_load_file = "Blades of Exile Save"; + fs::path path = *scen_arg_path; if(!path.parent_path().empty()){