fix(handling): fix crash with veto modern (#1019)

This commit is contained in:
Johann 2023-02-23 07:20:32 +01:00 committed by GitHub
parent 7a3c55e759
commit 6b6dabfeba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,9 @@ namespace big
{
m_gravity = vehicle->m_gravity;
m_handling_data = *vehicle->m_handling_data;
if(std::isinf(m_handling_data.m_traction_spring_delta_max_ratio))
m_handling_data.m_traction_spring_delta_max_ratio = 0.f;
}
void handling_profile::apply_to(CVehicle* vehicle, bool restore_hash) const