- added missing target check to A_RadiusDamageSelf.

This commit is contained in:
Christoph Oelckers 2020-06-16 00:16:22 +02:00
parent 9c7bc99201
commit cfd8d07bf8

View file

@ -845,6 +845,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)
{