# HG changeset patch
# User alfadur
# Date 1541180777 -10800
# Node ID dbaa125a0fe91606df4f1b969c9b1d02f8db5a40
# Parent  32a34bf70f659918d51e4800e904b4acb12e6513
fix infinite loop in landgen

diff -r 32a34bf70f65 -r dbaa125a0fe9 rust/landgen/src/outline.rs
--- a/rust/landgen/src/outline.rs	Fri Nov 02 20:30:13 2018 +0300
+++ b/rust/landgen/src/outline.rs	Fri Nov 02 20:46:17 2018 +0300
@@ -170,7 +170,7 @@
             let old_len = self.total_len();
             self.divide_edges(random_numbers);
 
-            if self.total_len() != old_len {
+            if self.total_len() == old_len {
                 break;
             }
         }