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/term.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/query') diff --git a/ecs/src/query/term.rs b/ecs/src/query/term.rs index 9c772da..c8a96b6 100644 --- a/ecs/src/query/term.rs +++ b/ecs/src/query/term.rs @@ -69,7 +69,7 @@ impl TermWithField for Option<&ComponentT> { Some( ComponentHandle::<'world, ComponentT>::from_entity_component_ref( - entity_handle + &entity_handle .get_matching_components(ComponentT::id()) .next()?, ) @@ -100,7 +100,7 @@ impl TermWithField for Option<&mut ComponentT> { Some( ComponentHandleMut::<'world, ComponentT>::from_entity_component_ref( - entity_handle + &entity_handle .get_matching_components(ComponentT::id()) .next()?, ) -- cgit v1.2.3-18-g5258