sparse_set: invoke release_sparse_pages before clearing the sparse array

This commit is contained in:
Michele Caini
2023-01-10 15:33:48 +01:00
parent e68ba5870c
commit dc25c9c1a2

View File

@@ -294,6 +294,7 @@ protected:
/*! @brief Erases all entities of a sparse set. */
virtual void clear_all() {
release_sparse_pages();
sparse.clear();
packed.clear();
free_list = tombstone;