p_saveg.c: replace unknown thinker error with assert

It is undefined behavior to cast function pointer to
void*.
This commit is contained in:
James R 2023-02-14 02:45:26 -08:00
parent f05f040cea
commit 0b2273b848

View file

@ -3135,8 +3135,8 @@ static void P_NetArchiveThinkers(savebuffer_t *save)
continue;
}
#ifdef PARANOIA
else if (th->function.acp1 != (actionf_p1)P_RemoveThinkerDelayed) // wait garbage collection
I_Error("unknown thinker type %p", th->function.acp1);
else
I_Assert(th->function.acp1 == (actionf_p1)P_RemoveThinkerDelayed); // wait garbage collection
#endif
}