Check for inflictor in stationary object combo

This commit is contained in:
Antonio Martinez 2025-06-21 00:51:08 -04:00 committed by AJ Martinez
parent 2ec203822f
commit 63c654c68c

View file

@ -3181,7 +3181,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
}
}
if (inflictor->momx == 0 && inflictor->momy == 0 && inflictor->momz == 0)
if (inflictor && !P_MobjWasRemoved(inflictor) && inflictor->momx == 0 && inflictor->momy == 0 && inflictor->momz == 0)
{
// Probably a map hazard.
allowcombo = false;