X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fucioption.cpp;h=922fa34fe939808a51ed14658fa2d0861685bd3b;hb=ad926d34c0105d523bfa5cb92cbcf9f337d54c08;hp=07b3027da707e11f239724f31576306efd40f289;hpb=ed436a36bade82422753f8be9c16d790232e9c91;p=stockfish diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 07b3027d..922fa34f 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -1,6 +1,6 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 - Copyright (C) 2004-2021 The Stockfish developers (see AUTHORS file) + Copyright (C) 2004-2022 The Stockfish developers (see AUTHORS file) Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -164,7 +164,7 @@ Option& Option::operator=(const string& v) { assert(!type.empty()); - if ( (type != "button" && v.empty()) + if ( (type != "button" && type != "string" && v.empty()) || (type == "check" && v != "true" && v != "false") || (type == "spin" && (stof(v) < min || stof(v) > max))) return *this;