Skip to content

Commit f99be5f

Browse files
authored
Fix buffer overflow when driving with full speed into noncar thing (#144)
1 parent 519671f commit f99be5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DETHRACE/common/car.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@ void CrushAndDamageCar(tCar_spec* c, br_vector3* pPosition, br_vector3* pForce_c
30773077
c->who_last_hit_me = car2;
30783078
}
30793079

3080-
if (c->driver == eDriver_non_car_unused_slot) {
3080+
if (c->driver == eDriver_non_car_unused_slot || c->driver == eDriver_non_car) {
30813081
return;
30823082
}
30833083
fudge_multiplier = gNet_mode == eNet_mode_none || gNet_softness[gCurrent_net_game->type] == 1.0f ? 1.0f : gNet_softness[gCurrent_net_game->type];

0 commit comments

Comments
 (0)