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 -1
View File
@@ -215,7 +215,7 @@ namespace {
void UCI::init_nnue(const std::string& evalFile)
{
if (UCI::use_nnue && !UCI::load_eval_finished)
if (Options["Use NNUE"] && !UCI::load_eval_finished)
{
// Load evaluation function from a file
Eval::NNUE::load_eval(evalFile);