From 847f34f2c996bdeb2fe98a3f6b661c6598ffce66 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 7 Aug 2024 11:11:46 -0400 Subject: [PATCH] - fix: check if bombsource exists when exploding a projectile with a XF_NOALLIES flag --- src/playsim/p_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/p_map.cpp b/src/playsim/p_map.cpp index 53329b96fb..a79f912aed 100644 --- a/src/playsim/p_map.cpp +++ b/src/playsim/p_map.cpp @@ -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))