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:
parent
469e7c5143
commit
287556f97d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue