From b9f8a5be5a98a6d9db1ecf02f29f6f291f2ded11 Mon Sep 17 00:00:00 2001 From: rektdie Date: Wed, 26 Mar 2025 20:50:47 +0100 Subject: [PATCH] fixed it in beta cutoff as well | bench 684523 --- source/search.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/search.cpp b/source/search.cpp index 99696c8..c0814fd 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -281,6 +281,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { history.Update(board.sideToMove, currMove, depth * depth); } + if (searchStopped) return 0; TT.WriteEntry(board.hashKey, depth, score, CutNode, Move()); return score; }