fixed accumulator bug | bench 1343750

This commit is contained in:
rektdie committed 2025-04-09 02:54:37 +02:00
1 parent 44843fa6a8
commit c2e03f1c19
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -297,7 +297,7 @@ bool Board::MakeMove(Move move) {
if (move.GetFlags() != epCapture) {
accPair.addSubSub(sideToMove, move.MoveTo(), endPiece, move.MoveFrom(), attackerPiece, move.MoveTo(), targetPiece);
} else {
accPair.addSubSub(sideToMove, move.MoveTo(), endPiece, move.MoveFrom(), attackerPiece, enPassantTarget, Pawn);
accPair.addSubSub(sideToMove, enPassantTarget, endPiece, move.MoveFrom(), attackerPiece, move.MoveTo() - direction, Pawn);
}
} else {
if (move.GetFlags() != kingCastle && move.GetFlags() != queenCastle) {