mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
P_RefreshItemCapsuleParts: Check for NULL before P_MobjWasRemoved
This commit is contained in:
parent
1ac869cbb3
commit
51a9a6d363
1 changed files with 1 additions and 1 deletions
|
|
@ -4399,7 +4399,7 @@ static void P_RefreshItemCapsuleParts(mobj_t *mobj)
|
|||
|
||||
while (count > 0)
|
||||
{
|
||||
if (P_MobjWasRemoved(part->tracer))
|
||||
if (part->tracer == NULL || P_MobjWasRemoved(part->tracer))
|
||||
{
|
||||
P_SetTarget(&part->tracer, P_SpawnMobjFromMobj(mobj, 0, 0, 0, MT_OVERLAY));
|
||||
P_SetTarget(&part->tracer->target, part);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue