X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=ed5dd6c2c7ad5aab3e39b26cb038833c3a6b58d2;hb=b7b6b4ba18bc9d291c2c2fd300c22a3e008dcbb2;hp=0d7575aa5248433ae0d6e788ea40d8267b288cb8;hpb=e404a7d97c94890dda18ca3a16cfd15b5a7ef235;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 0d7575aa..ed5dd6c2 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1325,7 +1325,7 @@ moves_loop: // When in check, search starts here // Bonus for prior countermove that caused the fail low else if ( (depth >= 3 || PvNode) && !priorCapture) - update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth)); + update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * (1 + (PvNode || cutNode))); if (PvNode) bestValue = std::min(bestValue, maxValue);