summaryrefslogtreecommitdiff
path: root/ecs/examples/relationship.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/examples/relationship.rs')
-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 33b7091..e8fb327 100644
--- a/ecs/examples/relationship.rs
+++ b/ecs/examples/relationship.rs
@@ -24,7 +24,7 @@ fn print_player_stats(player_query: Query<(Player, Health, Relationship<Holding,
for (_, health, sword_relationship) in &player_query {
println!("Player health: {}", health.health);
- if let Some(sword) = sword_relationship.get() {
+ if let Some(sword) = sword_relationship.get(0) {
println!("Player sword attack strength: {}", sword.attack_strength);
}
}