mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00: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