From: Pasi Kallinen Date: Sun, 10 Apr 2022 09:52:39 +0000 (+0300) Subject: Fix erroneous test_move params X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec4fafcf53c9aabb6bb973aed9b637cef3caa554;p=nethack Fix erroneous test_move params --- 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;