Переглянути джерело

sparse_set: removed redundant check

Michele Caini 4 роки тому
батько
коміт
0ec57fbb8d
1 змінених файлів з 0 додано та 1 видалено
  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.
      */
     const void *get(const entity_type entt) const ENTT_NOEXCEPT {
-        ENTT_ASSERT(contains(entt), "Set does not contain entity");
         return get_at(index(entt));
     }