mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-04 15:12:58 +00:00
Fix stale reference in P_KillMobj (crash)
This commit is contained in:
parent
1dad6be6a4
commit
6b980cb1c7
1 changed files with 1 additions and 1 deletions
|
|
@ -1643,7 +1643,7 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
// I wish I knew a better way to do this
|
// I wish I knew a better way to do this
|
||||||
if (target->target && target->target->player && target->target->player->mo)
|
if (!P_MobjWasRemoved(target->target) && target->target->player && !P_MobjWasRemoved(target->target->player->mo))
|
||||||
{
|
{
|
||||||
if ((target->target->player->itemflags & IF_EGGMANOUT) && target->type == MT_EGGMANITEM_SHIELD)
|
if ((target->target->player->itemflags & IF_EGGMANOUT) && target->type == MT_EGGMANITEM_SHIELD)
|
||||||
target->target->player->itemflags &= ~IF_EGGMANOUT;
|
target->target->player->itemflags &= ~IF_EGGMANOUT;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue