Browse Source

registry: any_of supports non-existing pools now

Michele Caini 2 years ago
parent
commit
885488b3d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/registry.hpp

+ 1 - 1
src/entt/entity/registry.hpp

@@ -978,7 +978,7 @@ public:
      */
      */
     template<typename... Type>
     template<typename... Type>
     [[nodiscard]] bool any_of(const entity_type entt) const {
     [[nodiscard]] bool any_of(const entity_type entt) const {
-        return (assure<std::remove_const_t<Type>>()->contains(entt) || ...);
+        return (all_of<Type>(entt) || ...);
     }
     }
 
 
     /**
     /**