Merge branch 'fix-null-standingslope' into 'next'

Fix segfault when going up steep slopes in rare cases

See merge request STJr/SRB2!1978
This commit is contained in:
sphere 2023-05-25 21:06:00 +00:00
commit 89ce385fb9

View file

@ -869,7 +869,7 @@ fixed_t P_GetWallTransferMomZ(mobj_t *mo, pslope_t *slope)
vector3_t slopemom, axis;
angle_t ang;
if (mo->standingslope->flags & SL_NOPHYSICS)
if (slope->flags & SL_NOPHYSICS)
return 0;
// If there's physics, time for launching.