correctly remove Clearing score memory

This commit is contained in:
Zeno Rogue 2020-01-02 16:50:15 +01:00
parent b4b325e009
commit ddc3666fb4
1 changed files with 1 additions and 0 deletions

View File

@ -3393,6 +3393,7 @@ auto ccm = addHook(clearmemory, 0, [] () {
gd->store(elec::afterOrb);
}) +
addHook(hooks_removecells, 0, [] () {
for(cell *c: removed_cells) clearing::score.erase(c);
eliminate_if(heat::offscreen_heat, is_cell_removed);
eliminate_if(heat::offscreen_fire, is_cell_removed);
eliminate_if(princess::infos, [] (princess::info*& i) {