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:
Marco Costalba
2010-11-05 13:59:48 +01:00
parent 469e7c5143
commit 287556f97d

View File

@@ -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)
{