From fe11a86a7e4c7a0f968bb7efb31cdd1e99c58eae Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Tue, 30 Jul 2013 20:18:14 +0000 Subject: [PATCH] Fix a failure to warn about non-unique rows/columns in non-square Unruly grids, reported in Debian bug #718354. [originally from svn r9976] --- unruly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unruly.c b/unruly.c index 855ba36..616e5e5 100644 --- 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;