Merge branch 'nullplayerslopelaunch' into 'master'

Fix slope launch with NULL player causing SIGSEGV.

See merge request STJr/SRB2Internal!595
This commit is contained in:
MascaraSnake 2019-12-04 17:07:04 -05:00
commit 6928763961

View file

@ -1997,7 +1997,7 @@ void P_XYMovement(mobj_t *mo)
{
mo->momz = transfermomz;
mo->standingslope = NULL;
if (player->pflags & PF_SPINNING)
if (player && (player->pflags & PF_SPINNING))
player->pflags |= PF_THOKKED;
}
}