aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--towers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/towers.c b/towers.c
index 7666af9..9525adb 100644
--- a/towers.c
+++ b/towers.c
@@ -1248,7 +1248,8 @@ static int check_errors(const game_state *state, int *errors)
}
}
- if (n > clues[i] || (j == w && n < clues[i])) {
+ if (n > clues[i] || (best == w && n < clues[i]) ||
+ (best < w && n == clues[i])) {
if (errors) {
int x, y;
CLUEPOS(x, y, i, w);