X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=e6e53e7c59d147d16aaa588670dd989f7ad66f76;hp=a2342a3cf4f90d50eeccce10a8d25a6afceef3e2;hb=e0bafa1911ede61b9268e0b461a5d8856d6cd6be;hpb=c02b3a4c7a339d212d5c6f75b3b89c926d33a800 diff --git a/src/search.cpp b/src/search.cpp index a2342a3c..e6e53e7c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -944,7 +944,7 @@ namespace { } ss->ttPv = ttPv; } - + // Step 11. If the position is not in TT, decrease depth by 2 if ( PvNode && depth >= 6 @@ -1585,7 +1585,7 @@ moves_loop: // When in check, search starts from here [to_sq(move)]; if ( !captureOrPromotion - && moveCount >= abs(depth) + 1 + && moveCount && (*contHist[0])[pos.moved_piece(move)][to_sq(move)] < CounterMovePruneThreshold && (*contHist[1])[pos.moved_piece(move)][to_sq(move)] < CounterMovePruneThreshold) continue;