aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--magnets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/magnets.c b/magnets.c
index 7d71518..d932232 100644
--- a/magnets.c
+++ b/magnets.c
@@ -1544,7 +1544,8 @@ static int lay_dominoes(game_state *state, random_state *rs, int *scratch)
ret = solve_set(state, i, NEUTRAL, "layout", NULL);
}
if (!ret) {
- debug(("Unable to lay anything at (%d,%d), giving up.", x, y));
+ debug(("Unable to lay anything at (%d,%d), giving up.",
+ i%state->w, i/state->w));
ret = -1;
break;
}