registry: any_of supports non-existing pools now

This commit is contained in:
Michele Caini
2023-04-28 16:28:32 +02:00
parent 3d3d3ef2d9
commit 885488b3d6

View File

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