From 6b6dabfebae27da3331b8aaccfea1956394f669b Mon Sep 17 00:00:00 2001 From: Johann <76482511+Primexz@users.noreply.github.com> Date: Thu, 23 Feb 2023 07:20:32 +0100 Subject: [PATCH] fix(handling): fix crash with veto modern (#1019) --- src/services/vehicle/handling_profile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/vehicle/handling_profile.cpp b/src/services/vehicle/handling_profile.cpp index dabdb7ea..4768e916 100644 --- a/src/services/vehicle/handling_profile.cpp +++ b/src/services/vehicle/handling_profile.cpp @@ -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