Skip to content

Commit

Permalink
check if it's a pair
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho committed Jun 8, 2024
1 parent ea4fa07 commit 169a431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/World.Relationship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ public EcsID Action(EcsID entity, EcsID target, int index = 0)
// //return SetDeferred
// }

if (!pair.IsPair)
return EntityView.Invalid.ID.Pair;

ref var record = ref GetRecord(entity);

var found = 0;
Expand Down

0 comments on commit 169a431

Please sign in to comment.