diff --git a/crates/bevy_ecs/src/event.rs b/crates/bevy_ecs/src/event.rs index d7d2019349a21..d6b844e80d08a 100644 --- a/crates/bevy_ecs/src/event.rs +++ b/crates/bevy_ecs/src/event.rs @@ -218,9 +218,9 @@ impl Events { BufferState::B => self.events_a.drain(..).chain(self.events_b.drain(..)), }; - event_instances.map(|ei| { - trace!("Events::drain_with_id -> {}", ei.event_id); - (ei.event, ei.event_id) + event_instances.map(|instance| { + trace!("Events::drain_with_id -> {}", instance.event_id); + (instance.event, instance.event_id) }) }