chiark / gitweb /
Fix a failure to warn about non-unique rows/columns in non-square Unruly grids, repor...
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 30 Jul 2013 20:18:14 +0000 (20:18 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 30 Jul 2013 20:18:14 +0000 (20:18 +0000)
[originally from svn r9976]

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;