From: Marco Costalba Date: Fri, 5 Nov 2010 12:59:48 +0000 (+0100) Subject: Fix an off by one bug in print_uci_options() X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=287556f97d54c87b3a973e22e133a9d09b62676f;p=stockfish Fix an off by one bug in print_uci_options() Last option was not printed. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 514d7b81..b1b84980 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -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) {