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.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 dc9b036..5f13579 100644 --- a/ecs/src/query.rs +++ b/ecs/src/query.rs @@ -391,7 +391,7 @@ impl TermWithField for &mut ComponentT fn get_field<'world>( entity_handle: &EntityHandle<'world>, - _world: &'world World, + world: &'world World, ) -> Self::Field<'world> { assert_eq!(ComponentT::id().kind(), UidKind::Component); @@ -410,7 +410,7 @@ impl TermWithField for &mut ComponentT ); }; - Self::Field::from_entity_component_ref(&component).unwrap_or_else(|err| { + Self::Field::from_entity_component_ref(&component, world).unwrap_or_else(|err| { panic!( "Creating handle to component {} failed: {err}", type_name::() -- cgit v1.2.3-18-g5258