From e3050c64bc73d3d2f2be453f6de65e79dc7e6048 Mon Sep 17 00:00:00 2001 From: Ashnal Date: Sat, 15 Feb 2020 20:20:35 -0500 Subject: [PATCH] Fix crash on level loading --- src/p_tick.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_tick.c b/src/p_tick.c index e6fffb417..2a3cf0cc8 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -193,6 +193,8 @@ void P_InitThinkers(void) UINT8 i; for (i = 0; i < NUM_THINKERLISTS; i++) thlist[i].prev = thlist[i].next = &thlist[i]; + + waypointcap = NULL; //Hack transplant } // Adds a new thinker at the end of the list. @@ -328,7 +330,7 @@ static inline void P_RunThinkers(void) for (currentthinker = thlist[i].next; currentthinker != &thlist[i]; currentthinker = currentthinker->next) { #ifdef PARANOIA - I_Assert(currentthinker->function.acp1 != NULL) + I_Assert(currentthinker->function.acp1 != NULL); #endif currentthinker->function.acp1(currentthinker); }