why we crashin here?
This commit is contained in:
parent
130bb38725
commit
bc3421a371
1 changed files with 3 additions and 2 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue