mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
NULL check Garden Top when throwing backward
This commit is contained in:
parent
8ab2962830
commit
ecec400ca4
1 changed files with 6 additions and 3 deletions
|
|
@ -10602,9 +10602,12 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
P_InstaThrust(player->mo, angle, player->speed + (80 * mapobjectscale));
|
||||
P_SetObjectMomZ(player->mo, player->mo->info->height / 8, true);
|
||||
|
||||
top->momx = player->mo->momx;
|
||||
top->momy = player->mo->momy;
|
||||
top->momz = player->mo->momz;
|
||||
if (top != NULL)
|
||||
{
|
||||
top->momx = player->mo->momx;
|
||||
top->momy = player->mo->momy;
|
||||
top->momz = player->mo->momz;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue