Skip to content

Commit

Permalink
Fix any_component_removed (bevyengine#8939)
Browse files Browse the repository at this point in the history
# Objective

`any_component_removed` condition is inversed.

## Solution

Remove extra `!`.

---

## Changelog

### Fixed

Fix `any_component_removed` condition.
  • Loading branch information
Shatur committed Jun 23, 2023
1 parent cdaae01 commit 8a1f0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>| !removals.iter().count() != 0
move |mut removals: RemovedComponents<T>| removals.iter().count() != 0
}

/// Generates a [`Condition`](super::Condition) that inverses the result of passed one.
Expand Down

0 comments on commit 8a1f0a2

Please sign in to comment.