X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=672abc05b27296165df1286890d1f658f56187bc;hb=e31f97e3baa52042fe60d6f4eeb50fe0d9e61013;hp=3008079e9c4ade413f2ee829ba5af2a7b8ad4f42;hpb=f3a2296e591d09dd50323fc3f96e800f5538d8bb;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 3008079e..672abc05 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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))