sparse_set: drop an useless check of the mode

This commit is contained in:
Michele Caini
2024-02-27 10:23:16 +01:00
parent 536c536563
commit 42c8df773c

View File

@@ -791,7 +791,7 @@ public:
* `end()` iterator otherwise.
*/
iterator push(const entity_type entt, const void *elem = nullptr) {
return try_emplace(entt, (mode == deletion_policy::swap_only), elem);
return try_emplace(entt, false, elem);
}
/**