Clear saved monsters when exiting scenario. Fix #786

This commit is contained in:
2025-08-18 17:45:55 -05:00
committed by Celtic Minstrel
parent 8534d312b6
commit aa44b43dc7

View File

@@ -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);