]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Remove ttPv tree shrinking.
[stockfish] / src / search.cpp
index 3008079e9c4ade413f2ee829ba5af2a7b8ad4f42..672abc05b27296165df1286890d1f658f56187bc 100644 (file)
@@ -1359,10 +1359,6 @@ moves_loop: // When in check, search starts here
     // opponent move is probably good and the new position is added to the search tree.
     if (bestValue <= alpha)
         ss->ttPv = ss->ttPv || ((ss-1)->ttPv && depth > 3);
-    // Otherwise, a counter move has been found and if the position is the last leaf
-    // in the search tree, remove the position from the search tree.
-    else if (depth > 3)
-        ss->ttPv = ss->ttPv && (ss+1)->ttPv;
 
     // Write gathered information in transposition table
     if (!excludedMove && !(rootNode && thisThread->pvIdx))