diff --git a/examples/the-hat-chooses-the-wizard/build.rs b/examples/the-hat-chooses-the-wizard/build.rs index 5e5b04d3..bf20316e 100644 --- a/examples/the-hat-chooses-the-wizard/build.rs +++ b/examples/the-hat-chooses-the-wizard/build.rs @@ -49,7 +49,7 @@ mod tiled_export { }) .collect(); - let tile_info = (0..tilemap.tile_count) + let tile_info = (0..tilemap.tilecount) .map(|id| *tile_data.get(&id).unwrap_or(&0)) .map(|tile_type| tile_type.to_string()) .collect::>() @@ -222,7 +222,7 @@ mod tiled_export { #[derive(Deserialize)] struct TiledTilemap { tiles: Vec, - tile_count: i32, + tilecount: i32, } #[derive(Deserialize)]