chiark / gitweb /
Er, and now do that _without_ introducing further segfaults.
authorSimon Tatham <anakin@pobox.com>
Mon, 26 Mar 2007 10:24:25 +0000 (10:24 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 26 Mar 2007 10:24:25 +0000 (10:24 +0000)
[originally from svn r7409]

rect.c

diff --git a/rect.c b/rect.c
index fb8f7879f9847302ecf5f849b0c19e1682fc6f9c..1fe873b957c41c1604f6e2302902d7fdadd9c675 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;
         }