Fix slope launch with NULL player causing SIGSEGV.
This commit is contained in:
parent
ae2594e5ce
commit
7f82d7451d
|
@ -1997,7 +1997,7 @@ void P_XYMovement(mobj_t *mo)
|
||||||
{
|
{
|
||||||
mo->momz = transfermomz;
|
mo->momz = transfermomz;
|
||||||
mo->standingslope = NULL;
|
mo->standingslope = NULL;
|
||||||
if (player->pflags & PF_SPINNING)
|
if (player && (player->pflags & PF_SPINNING))
|
||||||
player->pflags |= PF_THOKKED;
|
player->pflags |= PF_THOKKED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue