summaryrefslogtreecommitdiff
path: root/ecs/src/query/term.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-08-20 17:09:08 +0200
committerHampusM <hampus@hampusmat.com>2025-08-20 17:09:08 +0200
commit29ee29b3887773e36fb7ad55ab44392dae7f8412 (patch)
tree296b1ad0b2f04f0f577e6e5643e27a9222f7cf66 /ecs/src/query/term.rs
parent5c9113431ea22c53cc59324c93ec3dc6efdfe926 (diff)
feat(ecs): add funcs for getting target comp of wildcard pairs
Diffstat (limited to 'ecs/src/query/term.rs')
-rw-r--r--ecs/src/query/term.rs4
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()?,
)