diff --git a/crates/bevy_ecs/src/schedule/condition.rs b/crates/bevy_ecs/src/schedule/condition.rs index 539006c3d2d7b..5f361f931d72a 100644 --- a/crates/bevy_ecs/src/schedule/condition.rs +++ b/crates/bevy_ecs/src/schedule/condition.rs @@ -948,7 +948,7 @@ pub mod common_conditions { // Simply checking `is_empty` would not be enough. // PERF: note that `count` is efficient (not actually looping/iterating), // due to Bevy having a specialized implementation for events. - move |mut removals: RemovedComponents| !removals.iter().count() != 0 + move |mut removals: RemovedComponents| removals.iter().count() != 0 } /// Generates a [`Condition`](super::Condition) that inverses the result of passed one.