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,9 +10602,12 @@ 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);
top->momx = player->mo->momx; if (top != NULL)
top->momy = player->mo->momy; {
top->momz = player->mo->momz; top->momx = player->mo->momx;
top->momy = player->mo->momy;
top->momz = player->mo->momz;
}
} }
else else
{ {