registry: any_of supports non-existing pools now
This commit is contained in:
@@ -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) || ...);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user