Fix buffer overflow when driving with full speed into noncar thing (#144)

This commit is contained in:
Anonymous Maarten 2022-09-07 05:59:37 +02:00 committed by GitHub
parent 519671f9e8
commit f99be5f57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3077,7 +3077,7 @@ void CrushAndDamageCar(tCar_spec* c, br_vector3* pPosition, br_vector3* pForce_c
c->who_last_hit_me = car2;
}
if (c->driver == eDriver_non_car_unused_slot) {
if (c->driver == eDriver_non_car_unused_slot || c->driver == eDriver_non_car) {
return;
}
fudge_multiplier = gNet_mode == eNet_mode_none || gNet_softness[gCurrent_net_game->type] == 1.0f ? 1.0f : gNet_softness[gCurrent_net_game->type];