summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-07 09:38:07 +0200
committeraap <aap@papnet.eu>2020-05-07 09:38:07 +0200
commit876e402d1ecc07884f8562b8b1fbc3343fa4b677 (patch)
tree50796783b0dd8829960c0fa0b196a933a705f7a7 /src/audio
parentMerge pull request #517 from Nick007J/master (diff)
downloadre3-876e402d1ecc07884f8562b8b1fbc3343fa4b677.tar
re3-876e402d1ecc07884f8562b8b1fbc3343fa4b677.tar.gz
re3-876e402d1ecc07884f8562b8b1fbc3343fa4b677.tar.bz2
re3-876e402d1ecc07884f8562b8b1fbc3343fa4b677.tar.lz
re3-876e402d1ecc07884f8562b8b1fbc3343fa4b677.tar.xz
re3-876e402d1ecc07884f8562b8b1fbc3343fa4b677.tar.zst
re3-876e402d1ecc07884f8562b8b1fbc3343fa4b677.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index ec520eaa..a417e077 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -7989,7 +7989,7 @@ cAudioManager::ProcessVehicle(CVehicle *veh)
if (handling)
params.m_pTransmission = &handling->Transmission;
- params.m_nIndex = veh->GetModelIndex() - 90;
+ params.m_nIndex = veh->GetModelIndex() - MI_FIRST_VEHICLE;
if (params.m_pVehicle->GetStatus() == STATUS_SIMPLE)
velChange = params.m_pVehicle->AutoPilot.m_fMaxTrafficSpeed * 0.02f;
else