]> granicus.if.org Git - nethack/commitdiff
Fix erroneous test_move params
authorPasi Kallinen <paxed@alt.org>
Sun, 10 Apr 2022 09:52:39 +0000 (12:52 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 10 Apr 2022 09:52:39 +0000 (12:52 +0300)
src/cmd.c

index 4c490ab48329ef4ffa8d2ff6b34b4cc9ecf1fb07..2762f5883a9a3b78c1ef8cc22ca4da59115a398d 100644 (file)
--- 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;