mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-23 05:07:14 +00:00
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:
committed by
Joost VandeVondele
parent
a8bdf69c71
commit
60497a85d6
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user