- A_KIllSiblings and A_DamageSiblings didn't check for a valid master.

SVN r4242 (trunk)
This commit is contained in:
Christoph Oelckers 2013-04-30 06:48:53 +00:00
parent e9cd2777f3
commit bed47c6eff

View file

@ -2608,6 +2608,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_KillSiblings)
TThinkerIterator<AActor> it;
AActor *mo;
if (self->master != NULL)
{
while ( (mo = it.Next()) )
{
if (mo->master == self->master && mo != self)
@ -2615,6 +2617,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_KillSiblings)
P_DamageMobj(mo, self, self, mo->health, damagetype, DMG_NO_ARMOR | DMG_NO_FACTOR);
}
}
}
}
//===========================================================================
@ -3501,6 +3504,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DamageSiblings)
ACTION_PARAM_INT(amount, 0);
ACTION_PARAM_NAME(DamageType, 1);
if (self->master != NULL)
{
while ( (mo = it.Next()) )
{
if (mo->master == self->master && mo != self)
@ -3516,6 +3521,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DamageSiblings)
}
}
}
}
}