Fix a crash on Use NNUE default true

This was because the UCI::use_nnue variable was never updated to true.

closes https://github.com/official-stockfish/Stockfish/pull/2843

bench: 4578298
NNUE: 3377227
This commit is contained in:
mstembera
2020-07-27 07:17:41 +02:00
committed by Joost VandeVondele
parent a8bdf69c71
commit 60497a85d6
3 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -44,9 +44,8 @@ void on_threads(const Option& o) { Threads.set(size_t(o)); }
void on_tb_path(const Option& o) { Tablebases::init(o); }
void on_use_nnue(const Option& o) {
use_nnue = o;
if (use_nnue)
if (o)
std::cout << "info string NNUE eval used" << std::endl;
else
std::cout << "info string Standard eval used" << std::endl;
@@ -204,6 +203,5 @@ Option& Option::operator=(const string& v) {
return *this;
}
bool use_nnue = false;
bool load_eval_finished = false;
} // namespace UCI