Skip to content

Commit

Permalink
- fix: check if bombsource exists when exploding a projectile with a …
Browse files Browse the repository at this point in the history
…XF_NOALLIES flag
  • Loading branch information
madame-rachelle committed Aug 7, 2024
1 parent 593e1c0 commit 847f34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsim/p_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 847f34f

Please sign in to comment.