summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-21 09:18:39 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-21 09:18:39 +0000
commit7f65f09ea68ee80dac33e4a43f5e3bb2c5f2eaec (patch)
treefb6d7c3f3d35057c420e80b46a219547641401c6
parent91aab561617e3ebdc24648d454254e7e747de3d1 (diff)
downloadopenttd-7f65f09ea68ee80dac33e4a43f5e3bb2c5f2eaec.tar.xz
(svn r4498) - Use an item's name instead of value when parsing configuration lists.
-rw-r--r--settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index 5dbc11fbf..413e8ac53 100644
--- a/settings.c
+++ b/settings.c
@@ -800,7 +800,7 @@ static void ini_load_setting_list(IniFile *ini, const char *grpname, char **list
item = group->item;
for (i = 0; i != len; i++) {
if (item == NULL) break;
- list[i] = strdup(item->value);
+ list[i] = strdup(item->name);
item = item->next;
}
}