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(
|
pub(crate) fn deal_hands(
|
||||||
mut commands: Commands,
|
mut commands: Commands,
|
||||||
wall: Single<Entity, With<Wall>>,
|
wall: Single<Entity, With<Wall>>,
|
||||||
wall_tiles: Query<Entity, With<WallTiles>>,
|
wall_tiles: Populated<Entity, With<WallTiles>>,
|
||||||
tiles: Query<Entity, With<Tile>>,
|
tiles: Populated<Entity, With<Tile>>,
|
||||||
) -> Result {
|
) -> Result {
|
||||||
let hand = wall_tiles.iter().collect::<Vec<_>>();
|
let hand = wall_tiles.iter().collect::<Vec<_>>();
|
||||||
|
|
||||||
|
|
@ -40,5 +40,6 @@ pub(crate) fn deal_hands(
|
||||||
|
|
||||||
commands.spawn((Hand, HandTiles(hand)));
|
commands.spawn((Hand, HandTiles(hand)));
|
||||||
|
|
||||||
|
trace!("dealt hands");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue