diff --git a/src/p_tick.c b/src/p_tick.c index ccb577d5f..486fc2e0b 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -255,6 +255,9 @@ void P_UnlinkThinker(thinker_t *thinker) (next->prev = thinker->prev)->next = next; + if (thinker->cachable != true && thinker->cachable != false) + CONS_Alert(CONS_ERROR, "P_UnlinkThinker: weird value for cachable = %d\n", thinker->cachable); + if (thinker->cachable == true) { // put cachable thinkers in the mobj cache, so we can avoid allocations @@ -267,7 +270,6 @@ void P_UnlinkThinker(thinker_t *thinker) } } - // // P_RemoveThinker //