[common] fixed improper comment parsing, fixes #233

This commit is contained in:
Geoffrey McRae 2020-01-21 16:35:21 +11:00
parent f9d919bdbb
commit c7aa8871e4
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
B1-102-g4d0f019ad5+1
B1-103-gf9d919bdbb+1

View File

@ -382,6 +382,7 @@ bool option_load(const char * filename)
{
if (comment && c != '\n')
continue;
comment = false;
switch(c)
{
@ -729,4 +730,4 @@ bool option_get_bool(const char * module, const char * name)
}
assert(o->type == OPTION_TYPE_BOOL);
return o->value.x_bool;
}
}