NULL itnext in general on removal

This commit is contained in:
Sally Coolatta 2022-09-23 05:51:14 -04:00
parent 58f56de7cc
commit 31009264ca

View file

@ -10794,6 +10794,8 @@ void P_RemoveMobj(mobj_t *mobj)
}
}
P_SetTarget(&mobj->itnext, NULL);
// DBG: set everything in mobj_t to 0xFF instead of leaving it. debug memory error.
#ifdef SCRAMBLE_REMOVED
// Invalidate mobj_t data to cause crashes if accessed!