diff options
Diffstat (limited to 'ecs/src/query/term.rs')
-rw-r--r-- | ecs/src/query/term.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<ComponentT: Component> 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<ComponentT: Component> TermWithField for Option<&mut ComponentT> { Some( ComponentHandleMut::<'world, ComponentT>::from_entity_component_ref( - entity_handle + &entity_handle .get_matching_components(ComponentT::id()) .next()?, ) |