From 65566d5ae513695dec0c9fd9fda9237249599af3 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 5 May 2025 10:50:10 -0500 Subject: [PATCH] fix replay restore from death --- src/game/boe.actions.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 1eaa346c..1589c6bd 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -3597,11 +3597,15 @@ void handle_death() { // Use death (or leave Exile) dialog choice = cChoiceDlog("party-death",{"load","new","quit"}).show(); - if(choice == "quit") { + if(choice == "quit"){ All_Done = true; return; } - else if(choice == "load") { + else if(choice == "load"){ + // When replaying, the fancy file picker and/or load are recorded as actions next + if(replaying){ + break; + } fs::path file_to_load = run_file_picker(false); if(!file_to_load.empty()){ if(load_party(file_to_load, univ)){