P_NetUnArchiveThinkers: set thinker references to 0 before removing
This commit is contained in:
1 parent
3f4d399afd
commit
519e23ec36
1 file changed
+2
@@ -2719,6 +2719,8 @@ static void P_NetUnArchiveThinkers(void)
|
||||
{
|
||||
next = currentthinker->next;
|
||||
|
||||
currentthinker->references = 0; // Heinous but this is the only place the assertion in P_UnlinkThinkers is wrong
|
||||
|
||||
if (currentthinker->function.acp1 == (actionf_p1)P_MobjThinker || currentthinker->function.acp1 == (actionf_p1)P_NullPrecipThinker)
|
||||
P_RemoveSavegameMobj((mobj_t *)currentthinker); // item isn't saved, don't remove it
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user