- added missing target check to A_RadiusDamageSelf.

This commit is contained in:
Christoph Oelckers 2020-06-16 00:16:22 +02:00 committed by drfrag
parent 5ad11d7587
commit 8eb09a0099

View file

@ -863,6 +863,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_RadiusDamageSelf)
int actualDamage;
double actualDistance;
if (self->target == nullptr) return 0;
actualDistance = self->Distance3D(self->target);
if (actualDistance < distance)
{