From e470575701607f7c7e46aca150d71b864f693bf9 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 18 Aug 2025 17:45:55 -0500 Subject: [PATCH] Clear saved monsters when exiting scenario. Fix #786 --- src/game/boe.actions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 8bb52761..12854267 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -1409,6 +1409,11 @@ void handle_victory(bool force, bool record) { univ.exportGraphics(); univ.exportSummons(); univ.clear_stored_pcs(); + // Saved monsters are not valid now + for(auto& pop : univ.party.creature_save){ + pop.which_town = 200; + pop.clear(); + } reload_startup(); overall_mode = MODE_STARTUP; draw_startup(0);