forked from github/server
forgot to commit a fix
This commit is contained in:
parent
6d4c4240a1
commit
84f54d2642
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue