From 6453ffa5bd4e4593ebf9dd21fcecee91d27c1d33 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 18 Mar 2025 11:45:57 +0100 Subject: [PATCH] bugfix + resetting positionIndex in benchmark | bench 1143612 --- source/benchmark.cpp | 2 ++ source/search.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/benchmark.cpp b/source/benchmark.cpp index c869d35..517859d 100644 --- a/source/benchmark.cpp +++ b/source/benchmark.cpp @@ -64,6 +64,7 @@ void RunBenchmark() { int ply = 0; benchStarted = true; searchStopped = false; + positionIndex = 0; // Clearing TT.Clear(); @@ -82,4 +83,5 @@ void RunBenchmark() { nodes = 0; TT.Clear(); benchStarted = false; + positionIndex = 0; } diff --git a/source/search.cpp b/source/search.cpp index 4b5f3d7..a7dbaad 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -152,7 +152,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { } } - if (!ply && IsThreefold(board)) return 0; + if (ply && IsThreefold(board)) return 0; pvLine.SetLength(ply);