bugfix in PVS | bench 900613

This commit is contained in:
rektdie committed 2025-03-21 11:38:47 +01:00
1 parent 732ad08f01
commit 8639c4d4c3
1 file changed
+2 -2
+2 -2
View File
@@ -241,7 +241,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
// First move (suspected PV node)
if (!i) {
// Full search
score = -PVS<true>(copy, depth - 1, -beta, -alpha, ply + 1).score;
score = -PVS<isPV>(copy, depth - 1, -beta, -alpha, ply + 1).score;
} else if (reductions) {
// Null-window search with reductions
score = -PVS<false>(copy, depth - 1 - reductions, -alpha-1, -alpha, ply + 1).score;
@@ -257,7 +257,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
// Check if we need to do full window re-search
if (i && score > alpha && score < beta) {
score = -PVS<true>(copy, depth - 1, -beta, -alpha, ply + 1).score;
score = -PVS<isPV>(copy, depth - 1, -beta, -alpha, ply + 1).score;
}
positionIndex--;