From 2e1f84bda55811aaf6bb01ee9f290403e37fd101 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 5 Aug 2025 22:55:15 +0200 Subject: [PATCH] bugfix: missing curly brackets | bench 4559188 --- source/search.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index 53741e7..03bb856 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -657,11 +657,11 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC } if (ctx->searchStopped) return 0; - if (!ctx->excluded) + if (!ctx->excluded) { if (!board.InCheck() && (results.bestMove.IsQuiet()) - && !(nodeType == CutNode && results.score <= staticEval) - && !(nodeType == AllNode && results.score >= staticEval)) { + && !(nodeType == CutNode && results.score <= staticEval) + && !(nodeType == AllNode && results.score >= staticEval)) { int corrHistBonus = std::clamp(results.score - staticEval, -CORRHIST_LIMIT, CORRHIST_LIMIT); @@ -669,6 +669,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC } ctx->TT.WriteEntry(board.hashKey, depth, results.score, nodeType, results.bestMove); + } return results; }