From 28c1dc3e396c221b7d2a740ed49ce881bfe23384 Mon Sep 17 00:00:00 2001 From: darkvater Date: Thu, 23 Dec 2004 00:24:44 +0000 Subject: (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled. -Fix: removed some warnings -Enabled ENABLE_NETWORK on windows again which I accidentally commented out. --- settings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'settings.c') diff --git a/settings.c b/settings.c index 84572ad00..2f9ea63f4 100644 --- a/settings.c +++ b/settings.c @@ -952,14 +952,14 @@ static void LoadList(IniFile *ini, const char *grpname, char **list, int len) static void SaveList(IniFile *ini, const char *grpname, char **list, int len) { IniGroup *group = ini_getgroup(ini, grpname, -1); - IniItem *item; + IniItem *item = NULL; int i; bool first = true; if (!group) return; - for ( i=0; i != len; i++) { - if ( list[i] == '\0' ) continue; + for (i = 0; i != len; i++) { + if (list[i] == '\0') continue; if (first) { // add first item to the head of the group item = ini_item_alloc(group, list[i], strlen(list[i])); -- cgit v1.2.3-54-g00ecf