en passant bugfix

This commit is contained in:
rektdie committed 2025-03-03 22:54:26 +01:00
1 parent 00c3be28ba
commit bc50eff52d
3 files changed
+27 -21

No files matched your search

+1 -1
View File
@@ -346,7 +346,7 @@ void Board::MakeMove(Move move) {
int targetPiece = GetPieceType(move.MoveTo());
int direction = attackerColor ? south : north;
int newEpTarget = -1;
int newEpTarget = noEPTarget;
// Removing attacker piece from old position
RemovePiece(attackerPiece, move.MoveFrom(), attackerColor);