summaryrefslogtreecommitdiff
path: root/ecs/src/relationship.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-06 21:09:22 +0200
committerHampusM <hampus@hampusmat.com>2024-08-06 21:09:22 +0200
commitc2787b021d93c243978250d705a9052392f1e9a0 (patch)
treeb4d61d26ca4810bb2828cb73f4e15e9798ae13be /ecs/src/relationship.rs
parent94dfde94b68392aa071952375709f3eb4813729b (diff)
feat(ecs): add query function to get entity UID by index
Diffstat (limited to 'ecs/src/relationship.rs')
-rw-r--r--ecs/src/relationship.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/src/relationship.rs b/ecs/src/relationship.rs
index 9004f0f..964a47f 100644
--- a/ecs/src/relationship.rs
+++ b/ecs/src/relationship.rs
@@ -174,7 +174,7 @@ where
let component = ComponentRefMut::new(
entity
- .get(component_index)?
+ .get_component(component_index)?
.component
.write_nonblock()
.unwrap_or_else(|_| {