Er, and now do that _without_ introducing further segfaults.
[sgt/puzzles] / rect.c
diff --git a/rect.c b/rect.c
index fb8f787..1fe873b 100644 (file)
--- a/rect.c
+++ b/rect.c
@@ -1692,7 +1692,7 @@ static char *new_game_desc(game_params *params, random_state *rs,
             /*
              * If we've succeeded, then terminate the loop.
              */
-            if (ret)
+            if (ret == 1)
                 break;
         }