mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 04:33:02 +00:00
K_RepairOrbitChain: Don't naively call P_MobjWasRemoved on NULL
This commit is contained in:
parent
42146c5ea2
commit
1f2e57c060
1 changed files with 1 additions and 1 deletions
|
|
@ -7260,7 +7260,7 @@ void K_RepairOrbitChain(mobj_t *orbit)
|
|||
prev->movedir = num;
|
||||
}
|
||||
|
||||
if (!P_MobjWasRemoved(orbit->target) && orbit->target->player->itemamount != num)
|
||||
if (orbit->target && !P_MobjWasRemoved(orbit->target) && orbit->target->player->itemamount != num)
|
||||
orbit->target->player->itemamount = num;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue