X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=828d138fd212aa1a9e71c08f6b538127dafd7a10;hp=2906ae629d1e06cda2e0832272a25ffc2895a5bd;hb=2e86d1febc163e076320a6a21060fc5a1c7c0dff;hpb=946fa4762539307dcdcb30d08f13d627864e9bcf diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 2906ae62..828d138f 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -22,6 +22,7 @@ #include #include "misc.h" +#include "search.h" #include "thread.h" #include "tt.h" #include "uci.h" @@ -34,7 +35,7 @@ UCI::OptionsMap Options; // Global object namespace UCI { /// 'On change' actions, triggered by an option's value change -void on_clear_hash(const Option&) { TT.clear(); } +void on_clear_hash(const Option&) { Search::reset(); } void on_hash_size(const Option& o) { TT.resize(o); } void on_logger(const Option& o) { start_logger(o); } void on_threads(const Option&) { Threads.read_uci_options(); }