mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-27 12:36:15 +08:00
Fix incorrect enpassant flag for moves read from uci format in the binpack lib
This commit is contained in:
@@ -6238,7 +6238,7 @@ namespace chess
|
||||
|
||||
return Move::castle(castleType, pos.sideToMove());
|
||||
}
|
||||
else if (pos.epSquare() == to)
|
||||
else if (pos.pieceAt(from).type() == PieceType::Pawn && pos.epSquare() == to)
|
||||
{
|
||||
return Move::enPassant(from, to);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user