mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
K_SpawnMagicianParticles: NULL check on mo->target
This commit is contained in:
parent
a4a74a7d2f
commit
c18e7e6c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue