Skip to content

Commit 8e71678

Browse files
committed
Fixed illegal PVs
bench: 4454163
2 parents 58b9b28 + 03002ce commit 8e71678

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src_files/search.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,7 @@ Score Search::pvSearch(Board* b, Score alpha, Score beta, Depth depth, Depth ply
429429
}
430430

431431
// if we are in a pv node at depth 0,we need to reset the pv table
432-
if (pv && depth == 0){
433-
td->pvTable(ply).length = 0;
434-
}
432+
td->pvTable(ply).length = 0;
435433

436434
// check if a stop is forced
437435
if (timeManager->force_stop) {

0 commit comments

Comments
 (0)