diff options
Diffstat (limited to 'ecs/src/relationship.rs')
-rw-r--r-- | ecs/src/relationship.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/relationship.rs b/ecs/src/relationship.rs index 9f2a81e..259677b 100644 --- a/ecs/src/relationship.rs +++ b/ecs/src/relationship.rs @@ -169,7 +169,7 @@ where .get_entity(*target) .expect("Target entity is gone from archetype"); - let component_index = archetype.get_index_for_component(&ComponentT::id())?; + let component_index = archetype.get_index_for_component(ComponentT::id())?; let component = ComponentRefMut::new( entity @@ -373,7 +373,7 @@ where .get_entity(*target) .expect("Target entity is gone from archetype"); - let component_index = archetype.get_index_for_component(&ComponentT::id())?; + let component_index = archetype.get_index_for_component(ComponentT::id())?; let component = ComponentRef::new( entity |