Skip to content

Commit

Permalink
- added missing target check to A_RadiusDamageSelf.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 15, 2020
1 parent 9c7bc99 commit cfd8d07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/playsim/p_actionfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit cfd8d07

Please sign in to comment.