From be0ea7ba3091d441896a78321e59bae5c6831406 Mon Sep 17 00:00:00 2001 From: rektdie Date: Wed, 26 Mar 2025 21:05:57 +0100 Subject: [PATCH] checking for stop before history update | bench 684523 --- source/search.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/search.cpp b/source/search.cpp index c0814fd..b4c3175 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -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); }