1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 19:54:47 +00:00

savemem:: fixed a crash caoused by not erasing adj_memo

This commit is contained in:
Zeno Rogue 2022-07-17 12:39:55 +02:00
parent b229f2c9b8
commit 32ed3d98ee

View File

@ -3506,6 +3506,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);
eliminate_if(heat::offscreen_heat, is_cell_removed);
eliminate_if(heat::offscreen_fire, is_cell_removed);
eliminate_if(princess::infos, [] (princess::info*& i) {