Remove itnext at top of MobjThinker also

This commit is contained in:
Sally Coolatta 2022-09-23 05:54:02 -04:00
parent 31009264ca
commit e340d9b701

View file

@ -9394,6 +9394,8 @@ void P_MobjThinker(mobj_t *mobj)
P_SetTarget(&mobj->hnext, NULL);
if (mobj->hprev && P_MobjWasRemoved(mobj->hprev))
P_SetTarget(&mobj->hprev, NULL);
if (mobj->itnext && P_MobjWasRemoved(mobj->itnext))
P_SetTarget(&mobj->itnext, NULL);
if (mobj->flags & MF_NOTHINK)
return;