mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 11:36:51 +08:00
Fix incorrect use of UCI::Option of type "combo".
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Eval {
|
||||
UseNNUEMode useNNUE;
|
||||
std::string eval_file_loaded="None";
|
||||
|
||||
static UseNNUEMode nnue_mode_from_option(const std::string& mode)
|
||||
static UseNNUEMode nnue_mode_from_option(const UCI::Option& mode)
|
||||
{
|
||||
if (mode == "false")
|
||||
return UseNNUEMode::False;
|
||||
|
||||
@@ -86,7 +86,7 @@ void init(OptionsMap& o) {
|
||||
o["SyzygyProbeDepth"] << Option(1, 1, 100);
|
||||
o["Syzygy50MoveRule"] << Option(true);
|
||||
o["SyzygyProbeLimit"] << Option(7, 0, 7);
|
||||
#ifdef EVAL_LEARN
|
||||
#if defined(EVAL_LEARN)
|
||||
o["Use NNUE"] << Option("true var true var false var pure", "true", on_use_NNUE);
|
||||
#else
|
||||
o["Use NNUE"] << Option("true var true var false", "true", on_use_NNUE);
|
||||
|
||||
Reference in New Issue
Block a user