From 6b6b18073890530a76811c64eb8b04610038907f 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 e3a3cb03b..06f6daafd 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -8660,6 +8660,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;