diff --git a/src/hack.c b/src/hack.c index 7a579f386..10984fe50 100644 --- a/src/hack.c +++ b/src/hack.c @@ -772,7 +772,7 @@ boolean guess; for (ty = 0; ty < ROWNO; ++ty) if (travel[tx][ty]) { d = distmin(ux, uy, tx, ty); - if (d < dist && couldsee(ux, uy)) { + if (d < dist && couldsee(tx, ty)) { px = tx; py = ty; dist = d; } }