From fab08978005dbeb89ac248be5e00d861c825b50f Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 18 Mar 2022 14:08:29 +0000 Subject: [PATCH] Check against null tmpusher source before attempting to push a thing. # Conflicts: # src/p_spec.c --- src/p_spec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_spec.c b/src/p_spec.c index 9f75cf135..045130f33 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -8351,6 +8351,9 @@ static inline boolean PIT_PushThing(mobj_t *thing) if (thing->eflags & MFE_PUSHED) 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))) {