Clear saved monsters when exiting scenario. Fix #786

This commit is contained in:
2025-08-18 17:45:55 -05:00
parent ca3974982c
commit 82f7800b95

View File

@@ -1407,6 +1407,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);