Skip to content

Commit

Permalink
Make Remove Command's fields public (bevyengine#2449)
Browse files Browse the repository at this point in the history
In bevyengine#2034, the `Remove` Command did not get the same treatment as the rest of the commands. There's no discussion saying it shouldn't have public fields, so I am assuming it was an oversight. This fixes that oversight.
  • Loading branch information
isHavvy authored and ostwilkens committed Jul 27, 2021
1 parent c6d2fb4 commit 34cda44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/system/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ where

#[derive(Debug)]
pub struct Remove<T> {
entity: Entity,
phantom: PhantomData<T>,
pub entity: Entity,
pub phantom: PhantomData<T>,
}

impl<T> Command for Remove<T>
Expand Down

0 comments on commit 34cda44

Please sign in to comment.