X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0ca539ae235797afa29867368938a3a948f0aaab;hp=9393db6505f106db0eb7b57ecc034444cefa34df;hb=d543a64cc7fc06daed275b332b10ea06ba738001;hpb=939b621e5c67e9ef89b409fd773d38058341906c;ds=sidebyside diff --git a/src/search.cpp b/src/search.cpp index 9393db65..0ca539ae 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1141,7 +1141,9 @@ split_point_start: // At split points actual search starts from here TT.store(posKey, value_to_tt(bestValue, ss->ply), vt, depth, move, ss->eval, ss->evalMargin); // Update killers and history for non capture cut-off moves - if (bestValue >= beta && !pos.is_capture_or_promotion(move)) + if ( bestValue >= beta + && !pos.is_capture_or_promotion(move) + && !inCheck) { if (move != ss->killers[0]) {