Fix Pair.getRelation and .getTarget

main
copygirl 1 year ago
parent 1a678d1f2f
commit 39bd61a66c
  1. 4
      src/pair.zig

@ -61,11 +61,11 @@ pub fn Pair(comptime ctx: anytype) type {
}
pub fn getRelation(self: Self) Entity(ctx) {
return Entity(ctx).fromRaw(self.world.raw, c.ECS_PAIR_FIRST(self.raw));
return Entity(ctx).fromRaw(self.world, c.ECS_PAIR_FIRST(self.raw));
}
pub fn getTarget(self: Self) Entity(ctx) {
return Entity(ctx).fromRaw(self.world.raw, c.ECS_PAIR_SECOND(self.raw));
return Entity(ctx).fromRaw(self.world, c.ECS_PAIR_SECOND(self.raw));
}
// TODO: Decide whether to copy `Id` functions over?

Loading…
Cancel
Save