X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=f906bffd83a211814b872c03fe9c4b5eb3d3e1b1;hb=7431570023666ed19c8a37c8db3fb216abd4d767;hp=dbc8f41d47604b336834385fc7e1820003ab7ea7;hpb=3808a80498c0347b4ad4c52c4c1d7e93bcf57c1f;p=xboard.git diff --git a/moves.c b/moves.c index dbc8f41..f906bff 100644 --- a/moves.c +++ b/moves.c @@ -1698,7 +1698,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;