From c2787b021d93c243978250d705a9052392f1e9a0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 6 Aug 2024 21:09:22 +0200 Subject: feat(ecs): add query function to get entity UID by index --- ecs/src/relationship.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecs/src/relationship.rs') 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(|_| { -- cgit v1.2.3-18-g5258