1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

savemem:: do not crash because of flashdata not cleared

This commit is contained in:
Zeno Rogue 2022-07-17 12:42:51 +02:00
parent 6225fd38e8
commit c5650e4e46

View File

@ -4285,6 +4285,10 @@ struct flashdata {
vector<flashdata> flashes; vector<flashdata> flashes;
auto ahgf = addHook(hooks_removecells, 1, [] () {
eliminate_if(flashes, [] (flashdata& f) { return is_cell_removed(f.where); });
});
EX void drawBubble(cell *c, color_t col, string s, ld size) { EX void drawBubble(cell *c, color_t col, string s, ld size) {
LATE( drawBubble(c, col, s, size); ) LATE( drawBubble(c, col, s, size); )
auto fd = flashdata(ticks, 1000, c, col, 0); auto fd = flashdata(ticks, 1000, c, col, 0);