diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 09:06:49 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 09:06:49 +0200 |
commit | 6d75374c414e266503a980c664038357cc3ed574 (patch) | |
tree | bd461441f709bdd4fe4bdf4f76127830abf39fff /src | |
parent | de31bdc89fe2b2d191bee7a0c224b35bc0c9612e (diff) |
Fix cAudioManager::ProcessSpecial
Diffstat (limited to 'src')
-rw-r--r-- | src/audio/AudioLogic.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index b41c63fe..81ff1276 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -277,8 +277,7 @@ cAudioManager::ProcessSpecial() } CPlayerPed *playerPed = FindPlayerPed(); if (playerPed) { - const PedState &state = playerPed->m_nPedState; - if (state != PED_ENTER_CAR && state != PED_STEAL_CAR && !playerPed->bInVehicle) + if(playerPed->EnteringCar() && !playerPed->bInVehicle) SampleManager.StopChannel(m_nActiveSamples); } } |