diff --git a/src/search.cpp b/src/search.cpp index dd3e1f2f..9571deb3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -464,7 +464,7 @@ Value Worker::search( Value raw_eval = -VALUE_INF; ss->static_eval = -VALUE_INF; if (!is_in_check) { - correction = m_td.history.get_correction(pos); + correction = excluded ? 0 : m_td.history.get_correction(pos); raw_eval = tt_data && !is_mate_score(tt_data->eval) ? tt_data->eval : evaluate(pos); ss->static_eval = adj_shuffle(pos, raw_eval) + correction; improving = (ss - 2)->static_eval != -VALUE_INF && ss->static_eval > (ss - 2)->static_eval;