Merge branch 'wallspike-crash-fix' into 'master'

Add player pointer check in wall spike bounce

Closes #397

See merge request kart-krew-dev/ring-racers!78
This commit is contained in:
Eidolon 2025-10-26 20:59:39 -05:00
commit c2c3ae63a7

View file

@ -1275,7 +1275,7 @@ boolean K_KartSolidBounce(mobj_t *bounceMobj, mobj_t *solidMobj)
if (solidMobj->type == MT_WALLSPIKE)
{
if (bounceMobj->hitlag)
if (bounceMobj->player && bounceMobj->hitlag)
{
bounceMobj->player->justbumped = bumptime;
return false;