Browse Source

registry: remove redundant check

Michele Caini 3 years ago
parent
commit
de9d3c04e2
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/entt/entity/registry.hpp

+ 1 - 3
src/entt/entity/registry.hpp

@@ -711,13 +711,11 @@ public:
      * @return The version actually assigned to the entity.
      */
     version_type destroy(const entity_type entt, const version_type version) {
-        ENTT_ASSERT(valid(entt), "Invalid entity");
-
         for(size_type pos = pools.size(); pos; --pos) {
             pools.begin()[pos - 1u].second->remove(entt);
         }
 
-        return release_entity(entt, version);
+        return release(entt, version);
     }
 
     /**