From 03b9bf5abfbe2f9df20fd3d9b623b1d85dff0a91 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 28 Feb 2025 09:12:05 -0600 Subject: [PATCH] Confirm before debug-switching scenario --- src/game/boe.actions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 87e2a67f..79753b48 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -2449,7 +2449,8 @@ void debug_launch_scen(std::string scen_name) { } // Take party out of scenario they're in if(univ.party.is_in_scenario()){ - // TODO: Confirm + if(cChoiceDlog("leave-scenario",{"okay","cancel"}).show() != "okay") + return; handle_victory(true); } // Force party into the scenario, skipping the intro: