From 4855b6de4ae31ddcd8c07ac9d28759fa5628115f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 30 Apr 2005 13:43:32 +0000 Subject: [PATCH] crash, weil i_free ein pingeliges assert hat. --- src/common/kernel/battle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/kernel/battle.c b/src/common/kernel/battle.c index c06201d9d..cf3950b67 100644 --- a/src/common/kernel/battle.c +++ b/src/common/kernel/battle.c @@ -3216,9 +3216,7 @@ static void free_fighter(fighter * fig) { while (fig->loot) { - item * itm = fig->loot; - fig->loot = itm->next; - i_free(itm); + i_free(i_remove(&fig->loot, fig->loot)); } free(fig->person); free(fig->weapons);