From 29ee29b3887773e36fb7ad55ab44392dae7f8412 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 20 Aug 2025 17:09:08 +0200 Subject: feat(ecs): add funcs for getting target comp of wildcard pairs --- ecs/src/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/query.rs') 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 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::() @@ -401,7 +401,7 @@ impl 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::() -- cgit v1.2.3-18-g5258