From e340d9b701a3c4c02fcbc6ca09460a4111aaca6c Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Fri, 23 Sep 2022 05:54:02 -0400 Subject: [PATCH] Remove itnext at top of MobjThinker also --- src/p_mobj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_mobj.c b/src/p_mobj.c index 00e065984..37f76898c 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -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;