diff --git a/src/history.hpp b/src/history.hpp index 0aac2db6..e1bc71cd 100644 --- a/src/history.hpp +++ b/src/history.hpp @@ -17,7 +17,7 @@ constexpr i32 HISTORY_MAX = 16384; constexpr u64 CORRECTION_HISTORY_ENTRY_NB = 16384; constexpr i32 CORRECTION_HISTORY_GRAIN = 256; constexpr i32 CORRECTION_HISTORY_WEIGHT_SCALE = 256; -constexpr i32 CORRECTION_HISTORY_MAX = CORRECTION_HISTORY_GRAIN * 32; +constexpr i32 CORRECTION_HISTORY_MAX = CORRECTION_HISTORY_GRAIN * 64; namespace Search { struct Stack; diff --git a/src/search.cpp b/src/search.cpp index 47cb2cb4..22664cae 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1089,7 +1089,7 @@ Value Worker::search( && !(best_move != Move::none() && (best_move.is_capture() || best_move.is_promotion())) && !((bound == Bound::Lower && best_value <= ss->static_eval) || (bound == Bound::Upper && best_value >= ss->static_eval))) { - m_td.history.update_correction_history(pos, depth, best_value - raw_eval); + m_td.history.update_correction_history(pos, depth, best_value - ss->static_eval); } }