From 84f54d2642229972111ca819915b0539429cb000 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 13 Nov 2006 08:50:03 +0000 Subject: [PATCH] forgot to commit a fix --- src/common/kernel/eressea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index fc8460b55..ccf7f6b42 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -2551,7 +2551,7 @@ remove_empty_units_in_region(region *r) } } if ((u->number == 0 && u->race != new_race[RC_SPELL]) || (u->age <= 0 && u->race == new_race[RC_SPELL])) { - if (F!=NULL) destroy_unit(u); + if (u->faction!=NULL) destroy_unit(u); if (u->number==0) remove_unit(u); } if (*up==u) up=&u->next;