fix compile errors
authoralfadur
Sat, 03 Nov 2018 23:19:28 +0300
changeset 14144 59ec51b78737
parent 14143 c27461e6a9eb
child 14145 6e0be42d0a8f
fix compile errors
rust/theme-editor/src/main.rs
--- a/rust/theme-editor/src/main.rs	Sat Nov 03 21:09:01 2018 +0100
+++ b/rust/theme-editor/src/main.rs	Sat Nov 03 23:19:28 2018 +0300
@@ -39,7 +39,7 @@
     }
 
     fn next(&mut self, parameters: LandGenerationParameters<u32>) -> Land2D<u32> {
-        self.generator.generate_land(parameters, &mut self.rnd)
+        self.generator.generate_land(&parameters, &mut self.rnd)
     }
 }
 
@@ -164,7 +164,7 @@
 
     let mut source = init_source();
     let mut land = source.next(
-        LandGenerationParameters::new(0, u32::max_value()));
+        LandGenerationParameters::new(0, u32::max_value(), 1, false, false));
     draw_center_mark(&mut land);
 
     let mut land_surf = Surface::new(LAND_WIDTH, LAND_HEIGHT, PixelFormatEnum::ARGB8888).unwrap();