0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-03-21 10:21:49 +00:00

Fix slope launch with NULL player causing SIGSEGV.

This commit is contained in:
toaster 2019-12-04 12:13:27 +00:00
parent ae2594e5ce
commit 7f82d7451d

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;
}
}