clash-checking code in Solo. (valgrind confirms it.)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5916
cda61777-01e9-0310-a592-
d414129be87e
/* Mark obvious errors (ie, numbers which occur more than once
* in a single row, column, or box). */
/* Mark obvious errors (ie, numbers which occur more than once
* in a single row, column, or box). */
- if ((ds->entered_items[x*cr+d-1] & 2) ||
- (ds->entered_items[y*cr+d-1] & 8) ||
- (ds->entered_items[((x/r)+(y/c)*c)*cr+d-1] & 32))
+ if (d && ((ds->entered_items[x*cr+d-1] & 2) ||
+ (ds->entered_items[y*cr+d-1] & 8) ||
+ (ds->entered_items[((x/r)+(y/c)*c)*cr+d-1] & 32)))
highlight |= 16;
draw_number(fe, ds, state, x, y, highlight);
highlight |= 16;
draw_number(fe, ds, state, x, y, highlight);