diff --git a/libs/ecs/include/psemek/ecs/detail/query_cache_container.hpp b/libs/ecs/include/psemek/ecs/detail/query_cache_container.hpp index 6e1c1201..af9c232d 100644 --- a/libs/ecs/include/psemek/ecs/detail/query_cache_container.hpp +++ b/libs/ecs/include/psemek/ecs/detail/query_cache_container.hpp @@ -86,6 +86,7 @@ namespace psemek::ecs::detail for (auto & cache_set : caches_) { bool good = true; + for (auto const & uuid : cache_set->with_uuids) if (!contains_uuid(uuid)) { @@ -93,6 +94,13 @@ namespace psemek::ecs::detail break; } + for (auto const & uuid : cache_set->without_uuids) + if (contains_uuid(uuid)) + { + good = false; + break; + } + if (!good) continue;