forked from github/server
Bugfix beim Löschen von Feuerwänden.
This commit is contained in:
parent
4fd417981b
commit
94ade452b7
|
@ -225,11 +225,11 @@ age_borders(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (deleted) {
|
while (deleted) {
|
||||||
border_list * blist = deleted;
|
border_list * blist = deleted->next;
|
||||||
border * b = blist->data;
|
border * b = deleted->data;
|
||||||
erase_border(b);
|
erase_border(b);
|
||||||
deleted = blist->next;
|
|
||||||
free(deleted);
|
free(deleted);
|
||||||
|
deleted = blist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -175,6 +175,7 @@ a_removeall(attrib **p, const attrib_type * at)
|
||||||
attrib *
|
attrib *
|
||||||
a_new(const attrib_type * at) {
|
a_new(const attrib_type * at) {
|
||||||
attrib * a = calloc(1, sizeof(attrib));
|
attrib * a = calloc(1, sizeof(attrib));
|
||||||
|
assert(at!=NULL);
|
||||||
a->type = at;
|
a->type = at;
|
||||||
if (at->initialize) at->initialize(a);
|
if (at->initialize) at->initialize(a);
|
||||||
return a;
|
return a;
|
||||||
|
|
Loading…
Reference in New Issue