(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.
This commit is contained in:
darkvater
2004-12-23 00:24:44 +00:00
parent 552cb7ad60
commit 5eeb971de0
10 changed files with 26 additions and 20 deletions

View File

@@ -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]));