rust/mapgen/src/lib.rs
changeset 15850 44b49f255e31
parent 14731 946df0bb3b28
child 15932 230dc46487ea
--- a/rust/mapgen/src/lib.rs	Tue Jan 25 23:46:11 2022 +0300
+++ b/rust/mapgen/src/lib.rs	Thu Jan 27 03:51:13 2022 +0300
@@ -121,7 +121,7 @@
     where
         LandT: Copy + Default + PartialEq,
     {
-        let mut texture = Vec2D::new(land.size(), 0);
+        let mut texture = Vec2D::new(land.size().size(), 0);
 
         if let Some(land_sprite) = theme.land_texture() {
             for (row_index, (land_row, tex_row)) in land.rows().zip(texture.rows_mut()).enumerate()