mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
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:
commit
89ce385fb9
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue