Skip to content
Snippets Groups Projects
Verified Commit f47b00e8 authored by Louis's avatar Louis :fire:
Browse files

Fix ref conversion

parent 9fdee62b
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ mod autotile_support {
let rule = AutoTileRule {
chance: rule.chance as f32,
output: TileOutput::Random(
rule.tile_ids.iter().map(|val| val as usize).collect(),
rule.tile_ids.iter().map(|val| *val as usize).collect(),
),
matcher: TileMatcher::single_match(TileStatus::from_ldtk_value(
rule.pattern[0],
......@@ -111,7 +111,7 @@ mod autotile_support {
chance: rule.chance as f32,
matcher,
output: TileOutput::Random(
rule.tile_ids.iter().map(|val| val as usize).collect(),
rule.tile_ids.iter().map(|val| *val as usize).collect(),
),
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment