summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-02 16:27:11 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-02 16:27:11 +0100
commit482ff4562f2ed4806c0e51f96b656a7ad80445c7 (patch)
tree71fb784b900c71e02826a393928cfb93f6a942d6 /src/vehicles/Vehicle.cpp
parentFix arg (diff)
downloadre3-482ff4562f2ed4806c0e51f96b656a7ad80445c7.tar
re3-482ff4562f2ed4806c0e51f96b656a7ad80445c7.tar.gz
re3-482ff4562f2ed4806c0e51f96b656a7ad80445c7.tar.bz2
re3-482ff4562f2ed4806c0e51f96b656a7ad80445c7.tar.lz
re3-482ff4562f2ed4806c0e51f96b656a7ad80445c7.tar.xz
re3-482ff4562f2ed4806c0e51f96b656a7ad80445c7.tar.zst
re3-482ff4562f2ed4806c0e51f96b656a7ad80445c7.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index ba9348f0..eba9c596 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -531,9 +531,9 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
if(!bBraking){
if(m_fGasPedal < 0.01f){
if(GetModelIndex() == MI_RCBANDIT)
- brake = 0.2f * mod_HandlingManager.fWheelFriction / m_fMass;
+ brake = 0.2f * mod_HandlingManager.fWheelFriction / pHandling->m_fMass;
else
- brake = mod_HandlingManager.fWheelFriction / m_fMass;
+ brake = mod_HandlingManager.fWheelFriction / pHandling->m_fMass;
#ifdef FIX_BUGS
brake *= CTimer::GetTimeStepFix();
#endif