NULL check Garden Top when throwing backward

This commit is contained in:
James R 2023-02-18 01:21:22 -08:00
parent 8ab2962830
commit ecec400ca4

View file

@ -10602,10 +10602,13 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
P_InstaThrust(player->mo, angle, player->speed + (80 * mapobjectscale)); P_InstaThrust(player->mo, angle, player->speed + (80 * mapobjectscale));
P_SetObjectMomZ(player->mo, player->mo->info->height / 8, true); P_SetObjectMomZ(player->mo, player->mo->info->height / 8, true);
if (top != NULL)
{
top->momx = player->mo->momx; top->momx = player->mo->momx;
top->momy = player->mo->momy; top->momy = player->mo->momy;
top->momz = player->mo->momz; top->momz = player->mo->momz;
} }
}
else else
{ {
Obj_GardenTopThrow(player); Obj_GardenTopThrow(player);