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) {