crashbug deathcloud-ageing if target-unit has number=0

This commit is contained in:
Enno Rehling 2007-02-11 19:06:26 +00:00
parent bb5aa58454
commit b02bf2578c
1 changed files with 202 additions and 202 deletions

View File

@ -3203,7 +3203,7 @@ dc_age(struct curse * c)
double damage = c->effect.f * u->number;
freset(u->faction, FL_DH);
if (target_resists_magic(mage, u, TYP_UNIT, 0)){
if (u->number<=0 || target_resists_magic(mage, u, TYP_UNIT, 0)) {
continue;
}