X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=ce9ed9508aa2e03af4af54c7740225211c8baf11;hb=d97a02ea2b9328e666aff7a906820c9ec65ab381;hp=24f54c32bb35537231576690f35e4bb479f70667;hpb=4be94f41a6119f6d463e13adc6aaf5e02383da63;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 24f54c32..ce9ed950 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1373,6 +1373,7 @@ moves_loop: // When in check, search starts here { int bonus = (depth > 5) + (PvNode || cutNode) + (bestValue < alpha - 113 * depth) + ((ss-1)->moveCount > 12); update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus); + thisThread->mainHistory[~us][from_to((ss-1)->currentMove)] << stat_bonus(depth) * bonus / 2; } if (PvNode)