X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=366065b8e9c3380642ab74b040c7db9f3760f7f6;hb=ba06c480a752458a8159db0c9110bd3b7e34145a;hp=e322a1c99aa5ca094c05ec186ce54dcfe55f862b;hpb=d64d4ac426e06cdd52249b0464d22f3cdb7fcf79;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index e322a1c9..366065b8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1169,6 +1169,9 @@ moves_loop: // When in check, search starts here if ((ss+1)->cutoffCnt > 3) r++; + else if (move == ttMove) + r--; + ss->statScore = 2 * thisThread->mainHistory[us][from_to(move)] + (*contHist[0])[movedPiece][to_sq(move)] + (*contHist[1])[movedPiece][to_sq(move)]