Merge branch 'fix-pit_checkthing-crash' into 'next'

Check against null tmpusher source before attempting to push a thing.

See merge request STJr/SRB2!1413
This commit is contained in:
sphere 2021-05-19 08:12:30 -04:00
commit 60bbf1d8bc

View file

@ -8458,6 +8458,9 @@ static inline boolean PIT_PushThing(mobj_t *thing)
if (thing->player && thing->player->powers[pw_carry] == CR_ROPEHANG)
return false;
if (!tmpusher->source)
return false;
// Allow this to affect pushable objects at some point?
if (thing->player && (!(thing->flags & (MF_NOGRAVITY | MF_NOCLIP)) || thing->player->powers[pw_carry] == CR_NIGHTSMODE))
{