mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
Obj_getPlayerOffRideroid: NULL check
This commit is contained in:
parent
4f980dc949
commit
c17b2a44b3
1 changed files with 3 additions and 1 deletions
|
|
@ -82,7 +82,9 @@ void Obj_getPlayerOffRideroid(mobj_t *mo)
|
|||
player_t *p = pmo->player;
|
||||
|
||||
pmo->flags &= ~MF_NOGRAVITY;
|
||||
plr_resetRideroidVars(p);
|
||||
|
||||
if (p)
|
||||
plr_resetRideroidVars(p);
|
||||
|
||||
mo->fuse = TICRATE/2;
|
||||
mo->momx = mo->momx*2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue