make msg cleanser throw delete events
This commit is contained in:
parent
e459e1c166
commit
343c8e7012
@ -38,7 +38,12 @@ void MessageCleanser::iterate(float time_delta) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
reg->destroy(to_remove.cbegin(), to_remove.cend());
|
//reg->destroy(to_remove.cbegin(), to_remove.cend());
|
||||||
|
// we need to notify for every destruction, and give every listener a last chance
|
||||||
|
for (const auto c : to_remove) {
|
||||||
|
_rmm.throwEventDestroy(*reg, c);
|
||||||
|
reg->destroy(c);
|
||||||
|
}
|
||||||
deleted_count += to_remove.size();
|
deleted_count += to_remove.size();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user