From 3d1ad600019d5c1de17f855877e189aef1e74e48 Mon Sep 17 00:00:00 2001 From: rainrat Date: Sun, 31 Dec 2023 02:56:16 -0800 Subject: [PATCH] use first available piece as null move rather than A1 --- src/movegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movegen.cpp b/src/movegen.cpp index 0c99cb322..6d0849bed 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -448,7 +448,7 @@ namespace { //if "wall or move", generate walling action with null move if (pos.variant()->wallOrMove) { - moveList = make_move_and_gating(pos, moveList, Us, SQ_A1, SQ_A1); + moveList = make_move_and_gating(pos, moveList, Us, lsb(pos.pieces(Us)), lsb(pos.pieces(Us))); } }