checking for stop before history update | bench 684523

This commit is contained in:
rektdie committed 2025-03-26 21:05:57 +01:00
1 parent b9f8a5be5a
commit be0ea7ba30
1 file changed
+1
+1
View File
@@ -278,6 +278,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
killerMoves[1][ply] = killerMoves[0][ply];
killerMoves[0][ply] = currMove;
if (searchStopped) return 0;
history.Update(board.sideToMove, currMove, depth * depth);
}