mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
p_saveg.c: replace unknown thinker error with assert
It is undefined behavior to cast function pointer to void*.
This commit is contained in:
parent
f05f040cea
commit
0b2273b848
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue