chiark / gitweb /
Tents: mark squares as non-tents with {Shift,Control}-cursor keys.
[sgt-puzzles.git] / unruly.c
index 855ba361b79d9b39ad6327e1914524d0c3f52ac1..616e5e54c6bfc39a8401dc1d33e079d4899392ef 100644 (file)
--- a/unruly.c
+++ b/unruly.c
@@ -1012,7 +1012,7 @@ static int unruly_validate_unique(const game_state *state, int horizontal,
         for (c = 0; c < nc; c++)
             if (state->grid[r*rmult + c*cmult] != EMPTY)
                 nfull++;
-        if (nfull != nr)
+        if (nfull != nc)
             continue;
         for (r2 = r+1; r2 < nr; r2++) {
             int match = TRUE;