From: Jacob Nevins Date: Tue, 30 Jul 2013 20:18:14 +0000 (+0000) Subject: Fix a failure to warn about non-unique rows/columns in non-square Unruly grids, repor... X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=fe11a86a7e4c7a0f968bb7efb31cdd1e99c58eae;p=sgt-puzzles.git Fix a failure to warn about non-unique rows/columns in non-square Unruly grids, reported in Debian bug #718354. [originally from svn r9976] --- 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;