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

# Conflicts:
#	src/p_spec.c
This commit is contained in:
toaster 2022-03-18 14:08:29 +00:00
parent 4563722695
commit fab0897800

View file

@ -8351,6 +8351,9 @@ static inline boolean PIT_PushThing(mobj_t *thing)
if (thing->eflags & MFE_PUSHED) if (thing->eflags & MFE_PUSHED)
return false; return false;
if (!tmpusher->source)
return false;
// Allow this to affect pushable objects at some point? // Allow this to affect pushable objects at some point?
if (thing->player && !(thing->flags & (MF_NOGRAVITY | MF_NOCLIP))) if (thing->player && !(thing->flags & (MF_NOGRAVITY | MF_NOCLIP)))
{ {