From 3fe0e62105317691344975b34d5a276284bfcf8b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Aug 2015 12:06:05 +0200 Subject: [PATCH] do not remove battles from dead faction before writing the report. --- src/kernel/faction.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/kernel/faction.c b/src/kernel/faction.c index 41236840d..e57dd64ed 100755 --- a/src/kernel/faction.c +++ b/src/kernel/faction.c @@ -310,14 +310,6 @@ void destroyfaction(faction * f) free(f->spellbook); f->spellbook = 0; } - while (f->battles) { - struct bmsg *bm = f->battles; - f->battles = bm->next; - if (bm->msgs) { - free_messagelist(bm->msgs); - } - free(bm); - } while (u) { /* give away your stuff, make zombies if you cannot (quest items) */