Fix a failure to warn about non-unique rows/columns in non-square Unruly grids, reported in Debian bug #718354.

[originally from svn r9976]
This commit is contained in:
Jacob Nevins
2013-07-30 20:18:14 +00:00
parent 82d772e12a
commit fe11a86a7e

View File

@ -1012,7 +1012,7 @@ static int unruly_validate_unique(const game_state *state, int horizontal,
for (c = 0; c < nc; c++) for (c = 0; c < nc; c++)
if (state->grid[r*rmult + c*cmult] != EMPTY) if (state->grid[r*rmult + c*cmult] != EMPTY)
nfull++; nfull++;
if (nfull != nr) if (nfull != nc)
continue; continue;
for (r2 = r+1; r2 < nr; r2++) { for (r2 = r+1; r2 < nr; r2++) {
int match = TRUE; int match = TRUE;