Er, and now do that _without_ introducing further segfaults.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 26 Mar 2007 10:24:25 +0000 (10:24 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 26 Mar 2007 10:24:25 +0000 (10:24 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7409 cda61777-01e9-0310-a592-d414129be87e

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;
         }