Fix segfault when going up steep slopes in rare cases

This commit is contained in:
Gustaf Alhäll 2023-05-16 19:16:14 +02:00
parent b99ecde7b8
commit 6bb3ee226f
No known key found for this signature in database
GPG key ID: 6C1F67D690CDEDFD

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.