summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index 3c1c88be3..4f0c89e25 100644
--- a/settings.c
+++ b/settings.c
@@ -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) {