forgot to commit a fix

This commit is contained in:
Enno Rehling 2006-11-13 08:50:03 +00:00
parent 6d4c4240a1
commit 84f54d2642
1 changed files with 1 additions and 1 deletions

View File

@ -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 ((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 (u->number==0) remove_unit(u);
} }
if (*up==u) up=&u->next; if (*up==u) up=&u->next;