From cb3662dc24c1d150139a78929eadb6a15f3b43eb Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 11 Jan 2023 13:33:02 -0500 Subject: [PATCH] - fix nullptr crash --- 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 b980917730..589376fea7 100644 --- a/src/playsim/p_map.cpp +++ b/src/playsim/p_map.cpp @@ -6077,7 +6077,7 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom continue; } - if (thing != bombsource && bombsource->player && P_ShouldPassThroughPlayer(bombsource, thing)) + if (bombsource && thing != bombsource && bombsource->player && P_ShouldPassThroughPlayer(bombsource, thing)) continue; targets.Push(thing);