|
|
|
@ -1409,10 +1409,10 @@ const char *GRFProcessParams(const IniItem *item, uint index)
|
|
|
|
|
/* Loading newgrf stuff from configuration file */
|
|
|
|
|
c = calloc(1, sizeof(*c));
|
|
|
|
|
c->filename = strdup(item->name);
|
|
|
|
|
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);
|
|
|
|
|
c->num_params = 0;
|
|
|
|
|
|
|
|
|
|
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 (_first_grfconfig == NULL) {
|
|
|
|
|