X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=828d138fd212aa1a9e71c08f6b538127dafd7a10;hp=2906ae629d1e06cda2e0832272a25ffc2895a5bd;hb=411e704fdf5afac1bbfa8a28b86751501e0eed95;hpb=fb03188fc7e96f8bd21177fa2a2990cf8dde7575 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(); }