- fix nullptr crash

This commit is contained in:
Rachael Alexanderson 2023-01-11 13:33:02 -05:00
parent 769796800d
commit cb3662dc24

View file

@ -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);