From d148577ebf86e78628bea62d0271dfcce592125c Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 3 Aug 2025 10:17:40 -0500 Subject: [PATCH] Fix replay which loads a prefab --- src/game/boe.dlgutil.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/boe.dlgutil.cpp b/src/game/boe.dlgutil.cpp index b1344d95..7bc8615c 100644 --- a/src/game/boe.dlgutil.cpp +++ b/src/game/boe.dlgutil.cpp @@ -1864,6 +1864,11 @@ class cChooseScenario { if(ext == ".sav"){ choices.push_back("Load premade party: " + file.filename().string()); handlers.push_back([file](cButtonPanel& dlg) -> void { + if(replaying){ + // The next action encodes loading the prefab party, + // which is redundant here + pop_next_action(); + } if(!load_party(file, univ, spec_scen_g)) { std::cout << "Failed to load save file: " << file << std::endl; }else{