From 09981e0173a2427264e432226804292c91e1f920 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 26 Aug 2025 16:43:40 +0200 Subject: feat(ecs): add component changed event --- ecs/src/query/term.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ecs/src/query/term.rs') diff --git a/ecs/src/query/term.rs b/ecs/src/query/term.rs index c8a96b6..0683918 100644 --- a/ecs/src/query/term.rs +++ b/ecs/src/query/term.rs @@ -95,7 +95,7 @@ impl TermWithField for Option<&mut ComponentT> fn get_field<'world>( entity_handle: &crate::entity::Handle<'world>, - _world: &'world crate::World, + world: &'world crate::World, ) -> Self::Field<'world> { Some( @@ -103,6 +103,7 @@ impl TermWithField for Option<&mut ComponentT> &entity_handle .get_matching_components(ComponentT::id()) .next()?, + world, ) .unwrap_or_else(|err| { panic!( -- cgit v1.2.3-18-g5258