Explorar el Código

sparse_set: removed redundant check

Michele Caini hace 4 años
padre
commit
0ec57fbb8d
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  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));
     }