mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-09 12:16:45 +00:00
fixed a bug with Cellular Automata crashing after map reloaded
This commit is contained in:
parent
c7c086dee9
commit
5575608b76
@ -3544,6 +3544,7 @@ auto ccm = addHook(hooks_clearmemory, 0, [] () {
|
||||
prairie::beaststogen.clear();
|
||||
#endif
|
||||
mirror::clearcache();
|
||||
ca::changed.clear();
|
||||
}) +
|
||||
addHook(hooks_gamedata, 0, [] (gamedata* gd) {
|
||||
gd->store(heat::offscreen_heat);
|
||||
@ -3563,6 +3564,7 @@ auto ccm = addHook(hooks_clearmemory, 0, [] () {
|
||||
gd->store(elec::lightningfast);
|
||||
gd->store(elec::havethunder);
|
||||
gd->store(elec::afterOrb);
|
||||
gd->store(ca::changed);
|
||||
}) +
|
||||
addHook(hooks_removecells, 0, [] () {
|
||||
for(cell *c: removed_cells) clearing::score.erase(c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user