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
commit3c64af460614b4bf637918ec69310891f3387339 (patch)
treefb6d7c3f3d35057c420e80b46a219547641401c6
parenta0a2feeda5d8d93a74ceeb0d774d86627c84dfcb (diff)
downloadopenttd-3c64af460614b4bf637918ec69310891f3387339.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;
}
}