maybe fix lightning crash idk lol

This commit is contained in:
Sally Coolatta 2022-08-24 03:34:03 -04:00
parent a4767323f2
commit 7f4b3e7c2a

View file

@ -4076,8 +4076,10 @@ sector_t *P_MobjTouchingSectorSpecial(mobj_t *mo, INT32 section, INT32 number, b
msecnode_t *node;
ffloor_t *rover;
if (!mo)
if (mo == NULL || P_MobjWasRemoved(mo) == true)
{
return NULL;
}
// Check default case first
if (GETSECSPECIAL(mo->subsector->sector->special, section) == number)