summaryrefslogtreecommitdiff
path: root/ecs/examples
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-09-24 14:41:50 +0200
committerHampusM <hampus@hampusmat.com>2025-09-25 22:42:13 +0200
commit8d76fe6be211dfc8fc57d4e2f7e312e757ca899c (patch)
treedef2d5fe4add23fa4f5557170363d16af1314812 /ecs/examples
parent463f5df64005e63142f1e05bc973dd81d7cd793f (diff)
refactor(ecs): improve pair with wildcard API
Diffstat (limited to 'ecs/examples')
-rw-r--r--ecs/examples/relationship.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/examples/relationship.rs b/ecs/examples/relationship.rs
index 6ad08e7..dd2f77a 100644
--- a/ecs/examples/relationship.rs
+++ b/ecs/examples/relationship.rs
@@ -25,7 +25,7 @@ fn print_player_stats(player_query: Query<(&Player, &Health, Pair<Holding, Wildc
for (_, health, target_sword) in &player_query {
println!("Player health: {}", health.health);
- if let Some(sword_ent) = target_sword.get_entity() {
+ if let Some(sword_ent) = target_sword.get_target_ent() {
let sword = sword_ent
.get::<Sword>()
.expect("Sword entity is missing sword component");