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

This commit is contained in:
GoldenTails 2021-02-21 19:32:00 -06:00
parent d380405b2f
commit 12205314bc

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))
{