1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-12 12:09:14 +00: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:
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() { 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) for (OptionsMap::const_iterator it = Options.begin(); it != Options.end(); ++it)
if (it->second.idx == i) if (it->second.idx == i)
{ {