X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=718c78752502b61bd991b25191c94b2d30487e41;hp=ed370483435366e62e459ea00a985b3a288ed8f0;hb=258da28e79d99f75e0b626697bda2d459a37c0e6;hpb=7c8a8e038f0acd48a30ec7e3971c7d0efcfbf25d diff --git a/src/uci.cpp b/src/uci.cpp index ed370483..718c7875 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -175,14 +175,10 @@ namespace { while (is >> token) value += string(" ", !value.empty()) + token; - if (!Options.count(name)) - cout << "No such option: " << name << endl; - - else if (value.empty()) // UCI buttons don't have a value - Options[name] = true; - - else + if (Options.count(name)) Options[name] = value; + else + cout << "No such option: " << name << endl; }