Bugfix beim Löschen von Feuerwänden.

This commit is contained in:
Enno Rehling 2004-07-04 11:16:43 +00:00
parent 4fd417981b
commit 94ade452b7
2 changed files with 4 additions and 3 deletions

View File

@ -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;
} }
} }

View File

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