- fix: check if bombsource exists when exploding a projectile with a XF_NOALLIES flag
This commit is contained in:
parent
a5b08f0fb1
commit
a0802d566f
1 changed files with 1 additions and 1 deletions
|
|
@ -6169,7 +6169,7 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, double
|
|||
continue;
|
||||
|
||||
//[inkoalawetrust] Don't harm actors friendly to the explosions' source. But do harm the source.
|
||||
if ((flags & RADF_NOALLIES) && bombsource->IsFriend(thing) && !(thing == bombsource || thing == bombspot))
|
||||
if ((flags & RADF_NOALLIES) && bombsource && bombsource->IsFriend(thing) && !(thing == bombsource || thing == bombspot))
|
||||
continue;
|
||||
|
||||
if (bombsource && thing != bombsource && bombsource->player && P_ShouldPassThroughPlayer(bombsource, thing))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue