X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3a23d4250db419f258a373eee9b086d26a9b8b6f..ff109d14f75a124ca477a6d3aa6036c8c7214251:/bridges.c diff --git a/bridges.c b/bridges.c index 5a98ac1..e0bd609 100644 --- a/bridges.c +++ b/bridges.c @@ -940,6 +940,7 @@ static void map_update_possibles(game_state *state) idx = x; s = e = -1; bl = 0; + maxb = state->params.maxb; /* placate optimiser */ /* Unset possible flags until we find an island. */ for (y = 0; y < state->h; y++) { is_s = IDX(state, gridi, idx); @@ -985,6 +986,7 @@ static void map_update_possibles(game_state *state) idx = y*w; s = e = -1; bl = 0; + maxb = state->params.maxb; /* placate optimiser */ for (x = 0; x < state->w; x++) { is_s = IDX(state, gridi, idx); if (is_s) {