X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/6a7d52aa531cfd4d60b5f4f6b8d8b3436225e452..450d3df02a3b955f8bbd52e57d400bde3b4e6801:/unequal.c?ds=sidebyside diff --git a/unequal.c b/unequal.c index 459e35f..8c56509 100644 --- a/unequal.c +++ b/unequal.c @@ -728,7 +728,7 @@ static int solver_adjacent_set(struct latin_solver *solver, void *vctx) for (x = 0; x < o; x++) { for (y = 0; y < o; y++) { - for (i = 0; i < o; i++) { + for (i = 0; i < 4; i++) { int isadjacent = (GRID(ctx->state, flags, x, y) & adjthan[i].f); nx = x + adjthan[i].dx, ny = y + adjthan[i].dy;