diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 08:06:49 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 08:06:49 +0100 |
commit | 6d75374c414e266503a980c664038357cc3ed574 (patch) | |
tree | bd461441f709bdd4fe4bdf4f76127830abf39fff | |
parent | Small type use fixes (diff) | |
download | re3-6d75374c414e266503a980c664038357cc3ed574.tar re3-6d75374c414e266503a980c664038357cc3ed574.tar.gz re3-6d75374c414e266503a980c664038357cc3ed574.tar.bz2 re3-6d75374c414e266503a980c664038357cc3ed574.tar.lz re3-6d75374c414e266503a980c664038357cc3ed574.tar.xz re3-6d75374c414e266503a980c664038357cc3ed574.tar.zst re3-6d75374c414e266503a980c664038357cc3ed574.zip |
Diffstat (limited to '')
-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); } } |