fix source player being nil

This commit is contained in:
ZipperQR 2020-03-05 12:24:45 +03:00
parent 039aeed633
commit da9bf34175
1 changed files with 1 additions and 1 deletions

View File

@ -3441,7 +3441,7 @@ void P_SpecialStageDamage(player_t *player, mobj_t *inflictor, mobj_t *source)
if (player->powers[pw_invulnerability] || player->powers[pw_flashing] || player->powers[pw_super])
return;
if (!cv_friendlyfire.value)
if (!cv_friendlyfire.value && source->player)
{
if (inflictor->type == MT_LHRT && !(player->powers[pw_shield] & SH_NOSTACK))
{