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:
parent
6225fd38e8
commit
c5650e4e46
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user