chiark / gitweb /
Fix borders on the HTML menu bar.
[sgt-puzzles.git] / filling.c
index 2edec91dca824340a98f20fbca1fe4ea0c29afe2..d8d0c8cbb035b62addce8d3f35462807847e7fbf 100644 (file)
--- a/filling.c
+++ b/filling.c
@@ -977,7 +977,7 @@ static int learn_bitmap_deductions(struct solver_state *s, int w, int h)
         * reached by extending an existing region - we don't need to
         * know exactly _how far_ out of reach it is.
         */
-       for (i = 0; i <= sz; i++) {
+       for (i = 0; i < sz; i++) {
            if (s->board[i] == n) {
                /* Square is part of an existing CC. */
                minsize[i] = dsf_size(s->dsf, i);
@@ -1024,7 +1024,7 @@ static int learn_bitmap_deductions(struct solver_state *s, int w, int h)
         * in the bitmap reinstated, because we've found that it's
         * potentially reachable by extending an existing CC.
         */
-       for (i = 0; i <= sz; i++)
+       for (i = 0; i < sz; i++)
            if (minsize[i] <= n)
                bm[i] |= 1<<n;
     }
@@ -2111,7 +2111,7 @@ static void game_print(drawing *dr, const game_state *state, int tilesize)
 const struct game thegame = {
     "Filling", "games.filling", "filling",
     default_params,
-    game_fetch_preset,
+    game_fetch_preset, NULL,
     decode_params,
     encode_params,
     free_params,