storage: reset next on clear

This commit is contained in:
Michele Caini
2024-02-19 17:26:38 +01:00
parent 70eceea864
commit f2a8c0ffe6

View File

@@ -957,6 +957,12 @@ class basic_storage<Entity, Entity, Allocator>
}
protected:
/*! @brief Erases all entities of a storage. */
void pop_all() override {
base_type::pop_all();
next = {};
}
/**
* @brief Assigns an entity to a storage.
* @param hint A valid identifier.