Browse Source

sparse_set: drop an useless check of the mode

Michele Caini 2 years ago
parent
commit
42c8df773c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/sparse_set.hpp

+ 1 - 1
src/entt/entity/sparse_set.hpp

@@ -791,7 +791,7 @@ public:
      * `end()` iterator otherwise.
      * `end()` iterator otherwise.
      */
      */
     iterator push(const entity_type entt, const void *elem = nullptr) {
     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);
     }
     }
 
 
     /**
     /**