bugfix + resetting positionIndex in benchmark | bench 1143612

This commit is contained in:
rektdie committed 2025-03-18 11:45:57 +01:00
1 parent 4a8f8e1ee7
commit 6453ffa5bd
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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;
}
+1 -1
View File
@@ -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);