From 7d81990699cb2073cd7518ea9fcf00c2265c4817 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 24 Aug 2025 22:59:32 +0200 Subject: [PATCH] always set this to 0 dont need to check this beforehand --- src/p_mobj.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 69bb6dd81..83f4b1cbc 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -10170,8 +10170,7 @@ void P_RemoveSavegameMobj(mobj_t *mobj) R_RemoveMobjInterpolator(mobj); // just set its reference count to 0 to not trigger the assert in P_UnlinkThinker - if (th->references != 0) - th->references = 0; + th->references = 0; // free block // Here we use the same code as R_RemoveThinkerDelayed, but without reference counting (we're removing everything so it shouldn't matter) and without touching currentthinker since we aren't in P_RunThinkers