diff --git a/src/game/hand.rs b/src/game/hand.rs index 1ccef15..0870043 100644 --- a/src/game/hand.rs +++ b/src/game/hand.rs @@ -25,8 +25,8 @@ pub struct Discarded; // } pub(crate) fn sort_hands( - tiles: Populated<&Tile>, - hands: Populated<&mut Children, (Changed, Without)>, + tiles: Query<&Tile>, + hands: Query<&mut Children, (Changed, With, Without)>, ) -> Result { for mut hand in hands { hand.sort_unstable_by_key(|e| tiles.get(*e).unwrap().suit); diff --git a/src/game/round.rs b/src/game/round.rs index b33bb53..5d2ee14 100644 --- a/src/game/round.rs +++ b/src/game/round.rs @@ -155,7 +155,7 @@ pub(crate) fn discard( curr_player: Single>, players: Query<&Children, With>, - mut hands: Query<(&Children, Entity), (With, Without)>, + mut hands: Query<(&Children, Entity, &mut Hand), (With, Without)>, drawn: Single>, curr_turnstate: Res>,