always set this to 0
dont need to check this beforehand
This commit is contained in:
1 parent
531de8bd1e
commit
7d81990699
1 file changed
+1
-2
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user