rust/land2d/src/lib.rs
changeset 14161 3078123e84ea
parent 14158 3119d665d3c6
child 14165 165e43c3ed59
--- a/rust/land2d/src/lib.rs	Mon Nov 05 21:36:28 2018 +0100
+++ b/rust/land2d/src/lib.rs	Tue Nov 06 00:02:23 2018 +0100
@@ -133,7 +133,7 @@
         ) {
             let yd = y as isize + dir;
 
-            if land.is_valid_coordinate(0, yd as i32) {
+            if land.is_valid_y(yd as i32) {
                 stack.push((xl, xr, yd as usize, dir));
             }
         };