Michele Caini 3 лет назад
Родитель
Сommit
ac8dfe29ae
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      src/entt/entity/group.hpp

+ 0 - 4
src/entt/entity/group.hpp

@@ -344,8 +344,6 @@ public:
      */
     template<typename... Type>
     [[nodiscard]] decltype(auto) get(const entity_type entt) const {
-        ENTT_ASSERT(contains(entt), "Group does not contain entity");
-
         if constexpr(sizeof...(Type) == 0) {
             return std::apply([entt](auto *...curr) { return std::tuple_cat(curr->get_as_tuple(entt)...); }, pools);
         } else if constexpr(sizeof...(Type) == 1) {
@@ -716,8 +714,6 @@ public:
      */
     template<typename... Type>
     [[nodiscard]] decltype(auto) get(const entity_type entt) const {
-        ENTT_ASSERT(contains(entt), "Group does not contain entity");
-
         if constexpr(sizeof...(Type) == 0) {
             return std::apply([entt](auto *...curr) { return std::tuple_cat(curr->get_as_tuple(entt)...); }, pools);
         } else if constexpr(sizeof...(Type) == 1) {