From 894ee3ad8ee34d6805e6ccc73e363d07fbd9fb81 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 17 Jul 2022 12:43:20 +0200 Subject: [PATCH] savemem:: more aggresive adj_memo clear --- complex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complex.cpp b/complex.cpp index ba9a7873..66b560a8 100644 --- a/complex.cpp +++ b/complex.cpp @@ -3508,7 +3508,7 @@ auto ccm = addHook(hooks_clearmemory, 0, [] () { }) + addHook(hooks_removecells, 0, [] () { for(cell *c: removed_cells) clearing::score.erase(c); - for(auto& am: adj_memo) for(cell *c: removed_cells) am.erase(c); + for(auto& am: adj_memo) am.clear(); eliminate_if(heat::offscreen_heat, is_cell_removed); eliminate_if(heat::offscreen_fire, is_cell_removed); eliminate_if(princess::infos, [] (princess::info*& i) {