Fix computing ecs table query cache in the presence of without<> components
This commit is contained in:
parent
88677eb893
commit
92f02d8ac0
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue