mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Fix an off by one bug in print_uci_options()
Last option was not printed. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -104,7 +104,7 @@ void init_uci_options() {
|
||||
|
||||
void print_uci_options() {
|
||||
|
||||
for (size_t i = 0; i < Options.size(); i++)
|
||||
for (size_t i = 0; i <= Options.size(); i++)
|
||||
for (OptionsMap::const_iterator it = Options.begin(); it != Options.end(); ++it)
|
||||
if (it->second.idx == i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user