sparse_set: drop an useless check of the mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user