mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Fix bug causing array overrun. Only seemed to be showing a symptom
on Windows, presumably because the data after the array was harmless elsewhere. [originally from svn r8798]
This commit is contained in:
@ -728,7 +728,7 @@ static int solver_adjacent_set(struct latin_solver *solver, void *vctx)
|
|||||||
|
|
||||||
for (x = 0; x < o; x++) {
|
for (x = 0; x < o; x++) {
|
||||||
for (y = 0; y < o; y++) {
|
for (y = 0; y < o; y++) {
|
||||||
for (i = 0; i < o; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
int isadjacent = (GRID(ctx->state, flags, x, y) & adjthan[i].f);
|
int isadjacent = (GRID(ctx->state, flags, x, y) & adjthan[i].f);
|
||||||
|
|
||||||
nx = x + adjthan[i].dx, ny = y + adjthan[i].dy;
|
nx = x + adjthan[i].dx, ny = y + adjthan[i].dy;
|
||||||
|
Reference in New Issue
Block a user