K_SpawnMagicianParticles: NULL check on mo->target

This commit is contained in:
toaster 2023-01-08 15:32:20 +00:00
parent a4a74a7d2f
commit c18e7e6c3c

View file

@ -1943,7 +1943,7 @@ void K_SpawnMagicianParticles(mobj_t *mo, int spread)
INT32 i;
mobj_t *target = mo->target;
if (P_MobjWasRemoved(target))
if (!target || P_MobjWasRemoved(target))
target = mo;
for (i = 0; i < 16; i++)