From 515cd0f24710d88a33ea0119eee411649f3cfd5c Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Fri, 23 Jun 2023 18:22:00 +0300 Subject: [PATCH] Fix any_component_removed --- crates/bevy_ecs/src/schedule/condition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.