Parcourir la source

sparse_set: removed redundant check

Michele Caini il y a 4 ans
Parent
commit
0ec57fbb8d
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      src/entt/entity/sparse_set.hpp

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

@@ -656,7 +656,6 @@ public:
      * @return An opaque pointer to the element assigned to the entity, if any.
      * @return An opaque pointer to the element assigned to the entity, if any.
      */
      */
     const void *get(const entity_type entt) const ENTT_NOEXCEPT {
     const void *get(const entity_type entt) const ENTT_NOEXCEPT {
-        ENTT_ASSERT(contains(entt), "Set does not contain entity");
         return get_at(index(entt));
         return get_at(index(entt));
     }
     }