From 8386014a14ff80d6786622b0620395a01f2f2114 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 8fee65173..16f0556a9 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -10253,8 +10253,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