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
1 changed files with 4 additions and 0 deletions

View File

@ -4285,6 +4285,10 @@ struct flashdata {
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) {
LATE( drawBubble(c, col, s, size); )
auto fd = flashdata(ticks, 1000, c, col, 0);