null-pointer crash when running with --lomem

This commit is contained in:
Enno Rehling 2005-09-03 06:49:26 +00:00
parent 0e74ca4ef7
commit d09071eff7
1 changed files with 152 additions and 152 deletions

View File

@ -185,7 +185,7 @@ destroyfaction(faction * f)
while (f->battles) {
struct bmsg * bm = f->battles;
f->battles = bm->next;
free_messagelist(bm->msgs);
if (bm->msgs) free_messagelist(bm->msgs);
free(bm);
}