From 1cc461cc60107920d77e6a5b07fd0ff6f8608fc5 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 23 Sep 2024 01:02:31 +0200 Subject: [PATCH] dont actually call Nullprecipthinker --- src/p_tick.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p_tick.c b/src/p_tick.c index e06a75af4..8b842ec90 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -287,7 +287,7 @@ mobj_t *P_SetTarget(mobj_t **mop, mobj_t *targ) { if (*mop) // If there was a target already, decrease its refcount (*mop)->thinker.references--; -if ((*mop = targ) != NULL) // Set new target and if non-NULL, increase its counter + if ((*mop = targ) != NULL) // Set new target and if non-NULL, increase its counter targ->thinker.references++; return targ; } @@ -318,10 +318,12 @@ static inline void P_RunThinkers(void) { for (currentthinker = thinkercap.next; currentthinker != &thinkercap; currentthinker = currentthinker->next) { + if (currentthinker->function.acp1 == (actionf_p1)P_NullPrecipThinker) + continue; #ifdef PARANOIA I_Assert(currentthinker->function.acp1 != NULL) #endif - currentthinker->function.acp1(currentthinker); + currentthinker->function.acp1(currentthinker); } }