mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1384) Fix: Sometimes when lists were saved, a lot of blank lines had been added
This commit is contained in:
parent
87e5984ae2
commit
61761cfab1
|
@ -962,7 +962,7 @@ static void SaveList(IniFile *ini, const char *grpname, char **list, int len)
|
|||
if (!group)
|
||||
return;
|
||||
for (i = 0; i != len; i++) {
|
||||
if (list[i] == '\0') continue;
|
||||
if (list[i] == NULL || list[i][0] == '\0') continue;
|
||||
|
||||
if (first) { // add first item to the head of the group
|
||||
item = ini_item_alloc(group, list[i], strlen(list[i]));
|
||||
|
|
Loading…
Reference in New Issue