why we crashin here?

This commit is contained in:
Tao Tien 2026-01-11 23:41:27 -08:00
parent 130bb38725
commit bc3421a371

View file

@ -29,8 +29,8 @@ pub struct InHand(pub Entity);
pub(crate) fn deal_hands(
mut commands: Commands,
wall: Single<Entity, With<Wall>>,
wall_tiles: Query<Entity, With<WallTiles>>,
tiles: Query<Entity, With<Tile>>,
wall_tiles: Populated<Entity, With<WallTiles>>,
tiles: Populated<Entity, With<Tile>>,
) -> Result {
let hand = wall_tiles.iter().collect::<Vec<_>>();
@ -40,5 +40,6 @@ pub(crate) fn deal_hands(
commands.spawn((Hand, HandTiles(hand)));
trace!("dealt hands");
Ok(())
}