diff --git a/src/cmd.c b/src/cmd.c index 4c490ab48..2762f5883 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -4764,7 +4764,7 @@ there_cmd_menu(int x, int y, int mod) if (!K) { /* no menu options, try to move */ - if (next2u(x, y) && !test_move(u.ux, u.uy, x, y, TEST_MOVE)) + if (next2u(x, y) && !test_move(u.ux, u.uy, dx, dy, TEST_MOVE)) cmdq_add_ec(move_funcs[dir][MV_WALK]); else if (flags.travelcmd) { iflags.travelcc.x = u.tx = x;