bugfix: missing curly brackets | bench 4559188

This commit is contained in:
rektdie committed 2025-09-03 01:11:35 +02:00
1 parent bf7adcb06b
commit 2e1f84bda5
1 file changed
+2 -1
+2 -1
View File
@@ -657,7 +657,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
} }
if (ctx->searchStopped) return 0; if (ctx->searchStopped) return 0;
if (!ctx->excluded) if (!ctx->excluded) {
if (!board.InCheck() && (results.bestMove.IsQuiet()) if (!board.InCheck() && (results.bestMove.IsQuiet())
&& !(nodeType == CutNode && results.score <= staticEval) && !(nodeType == CutNode && results.score <= staticEval)
@@ -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); ctx->TT.WriteEntry(board.hashKey, depth, results.score, nodeType, results.bestMove);
}
return results; return results;
} }