diff options
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r-- | ecs/src/query.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs index ccb7add..dfe9dad 100644 --- a/ecs/src/query.rs +++ b/ecs/src/query.rs @@ -360,7 +360,7 @@ impl<ComponentT: Component> TermWithField for &ComponentT ); }; - Self::Field::from_entity_component_ref(component).unwrap_or_else(|err| { + Self::Field::from_entity_component_ref(&component).unwrap_or_else(|err| { panic!( "Creating handle to component {} failed: {err}", type_name::<ComponentT>() @@ -401,7 +401,7 @@ impl<ComponentT: Component> TermWithField for &mut ComponentT ); }; - Self::Field::from_entity_component_ref(component).unwrap_or_else(|err| { + Self::Field::from_entity_component_ref(&component).unwrap_or_else(|err| { panic!( "Creating handle to component {} failed: {err}", type_name::<ComponentT>() |