From 34cda44adaebb35d566b31eea552068c2f120b5a Mon Sep 17 00:00:00 2001 From: Ryan Scheel Date: Mon, 12 Jul 2021 19:48:48 +0000 Subject: [PATCH] Make Remove Command's fields public (#2449) In #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. --- crates/bevy_ecs/src/system/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/system/commands.rs b/crates/bevy_ecs/src/system/commands.rs index 90adfb8dc510cc..74b69bd2fbd28c 100644 --- a/crates/bevy_ecs/src/system/commands.rs +++ b/crates/bevy_ecs/src/system/commands.rs @@ -359,8 +359,8 @@ where #[derive(Debug)] pub struct Remove { - entity: Entity, - phantom: PhantomData, + pub entity: Entity, + pub phantom: PhantomData, } impl Command for Remove