mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
maybe fix lightning crash idk lol
This commit is contained in:
parent
a4767323f2
commit
7f4b3e7c2a
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue