Mercurial > hg > openttd
changeset 3632:6cce6f56d90b draft
(svn r4531) - Fix [NewGRF]: overzealous fixing, reset num_params to 0 from -1 when parsing the parameter list fails.
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Sat, 22 Apr 2006 14:06:46 +0000 |
parents | d037f1facfdf |
children | 51ac50fc980c |
files | settings.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/settings.c +++ b/settings.c @@ -1412,7 +1412,10 @@ if (*item->value != '\0') { c->num_params = parse_intlist(item->value, (int*)c->param, lengthof(c->param)); - if (c->num_params == (byte)-1) ShowInfoF("ini: error in array '%s'", item->name); + if (c->num_params == (byte)-1) { + ShowInfoF("ini: error in array '%s'", item->name); + c->num_params = 0; + } } if (_first_grfconfig == NULL) {