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
721b483d93
commit
e6ba08802e
1 changed files with 2 additions and 2 deletions
|
|
@ -3285,8 +3285,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…
Reference in a new issue