- 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)
@ -2616,6 +2618,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_KillSiblings)
}
}
}
}
//===========================================================================
//
@ -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)
@ -3517,6 +3522,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DamageSiblings)
}
}
}
}
//===========================================================================