mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
savemem:: fixed a crash caoused by not erasing adj_memo
This commit is contained in:
parent
b229f2c9b8
commit
32ed3d98ee
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user