mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'nullplayerslopelaunch' into 'master'
Fix slope launch with NULL player causing SIGSEGV. See merge request STJr/SRB2Internal!595
This commit is contained in:
commit
6928763961
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue