Skip to content

Commit

Permalink
check alive when entity is a pair
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho committed Jul 6, 2024
1 parent cfd57dc commit eb8597b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/World.Public.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public bool Exists(EcsID entity)
{
if (entity.IsPair)
{
return _entities.Contains(entity.First) && _entities.Contains(entity.Second);
return GetAlive(entity.First).IsValid && GetAlive(entity.Second).IsValid;
}

return _entities.Contains(entity);
Expand Down

0 comments on commit eb8597b

Please sign in to comment.