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
1 changed files with 1 additions and 1 deletions

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