diff --git a/crates/bevy_ecs/src/world/entity_ref.rs b/crates/bevy_ecs/src/world/entity_ref.rs index b8146fa86a313..912f4a968606f 100644 --- a/crates/bevy_ecs/src/world/entity_ref.rs +++ b/crates/bevy_ecs/src/world/entity_ref.rs @@ -2289,7 +2289,7 @@ impl<'w> EntityWorldMut<'w> { self.entity, archetype.components(), #[cfg(feature = "track_location")] - Location::caller(), + caller, ); } deferred_world.trigger_on_replace( @@ -2297,7 +2297,7 @@ impl<'w> EntityWorldMut<'w> { self.entity, archetype.components(), #[cfg(feature = "track_location")] - Location::caller(), + caller, ); if archetype.has_remove_observer() { deferred_world.trigger_observers( @@ -2305,7 +2305,7 @@ impl<'w> EntityWorldMut<'w> { self.entity, archetype.components(), #[cfg(feature = "track_location")] - Location::caller(), + caller, ); } deferred_world.trigger_on_remove( @@ -2313,7 +2313,7 @@ impl<'w> EntityWorldMut<'w> { self.entity, archetype.components(), #[cfg(feature = "track_location")] - Location::caller(), + caller, ); }