diff --git a/crates/bevy_ecs/src/world/entity_ref.rs b/crates/bevy_ecs/src/world/entity_ref.rs index 90c2b41256e3d..dd32ae4639333 100644 --- a/crates/bevy_ecs/src/world/entity_ref.rs +++ b/crates/bevy_ecs/src/world/entity_ref.rs @@ -4420,7 +4420,7 @@ pub unsafe trait DynamicComponentFetch { // - No mutable references are returned by `fetch_ref`. unsafe impl DynamicComponentFetch for ComponentId { type Ref<'w> = Ptr<'w>; - type Mut<'w> = MutUntyped<'w>; + type Mut<'w> = MutMarkChangesUntyped<'w>; unsafe fn fetch_ref( self, @@ -4445,7 +4445,7 @@ unsafe impl DynamicComponentFetch for ComponentId { // - No mutable references are returned by `fetch_ref`. unsafe impl DynamicComponentFetch for [ComponentId; N] { type Ref<'w> = [Ptr<'w>; N]; - type Mut<'w> = [MutUntyped<'w>; N]; + type Mut<'w> = [MutMarkChangesUntyped<'w>; N]; unsafe fn fetch_ref( self, @@ -4467,7 +4467,7 @@ unsafe impl DynamicComponentFetch for [ComponentId; N] { // - No mutable references are returned by `fetch_ref`. unsafe impl DynamicComponentFetch for &'_ [ComponentId; N] { type Ref<'w> = [Ptr<'w>; N]; - type Mut<'w> = [MutUntyped<'w>; N]; + type Mut<'w> = [MutMarkChangesUntyped<'w>; N]; unsafe fn fetch_ref( self, @@ -4521,7 +4521,7 @@ unsafe impl DynamicComponentFetch for &'_ [ComponentId; N] { // - No mutable references are returned by `fetch_ref`. unsafe impl DynamicComponentFetch for &'_ [ComponentId] { type Ref<'w> = Vec>; - type Mut<'w> = Vec>; + type Mut<'w> = Vec>; unsafe fn fetch_ref( self, @@ -4567,7 +4567,7 @@ unsafe impl DynamicComponentFetch for &'_ [ComponentId] { // - No mutable references are returned by `fetch_ref`. unsafe impl DynamicComponentFetch for &'_ HashSet { type Ref<'w> = HashMap>; - type Mut<'w> = HashMap>; + type Mut<'w> = HashMap>; unsafe fn fetch_ref( self,