From eecd1740d464edeae7388d0d667c203867fb2951 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sun, 2 Nov 2014 15:52:25 +0100 Subject: [PATCH] Fix premature disappearence of Lion victims The check test did not correctly undo a Lion e.p. capture, which would make the victim already disappear after entry of the first leg, which potentially could affect the second leg move generation. (Not in Lions, though, but in Betza castlings it manifested itself.) --- moves.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/moves.c b/moves.c index 4a097df..d1fa571 100644 --- a/moves.c +++ b/moves.c @@ -1685,7 +1685,7 @@ CheckTest (Board board, int flags, int rf, int ff, int rt, int ft, int enPassant board[rf][ft] = captured; board[rt][ft] = EmptySquare; } else { - if(saveKill >= 0) board[killY][killX] = trampled, killX = saveKill; + if(saveKill >= 0) board[killY][killX = saveKill] = trampled; board[rt][ft] = captured; } board[EP_STATUS] = ep; -- 1.7.0.4