Procházet zdrojové kódy

sparse_set: removed redundant check

Michele Caini před 4 roky
rodič
revize
0ec57fbb8d
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  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));
     }
     }