mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r4531) - Fix [NewGRF]: overzealous fixing, reset num_params to 0 from -1 when parsing the parameter list fails.
This commit is contained in:
parent
a98cdf9750
commit
4be0b3a5f3
@ -1412,7 +1412,10 @@ const char *GRFProcessParams(const IniItem *item, uint index)
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user