diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 15:24:20 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 15:24:20 +0100 |
commit | 356f10107825fba0480edd511ec7c16818a95cea (patch) | |
tree | 29c2345425a91452132939d223aadc8ad76cc35f /src/audio/AudioLogic.cpp | |
parent | Fix use of strncmp (diff) | |
download | re3-356f10107825fba0480edd511ec7c16818a95cea.tar re3-356f10107825fba0480edd511ec7c16818a95cea.tar.gz re3-356f10107825fba0480edd511ec7c16818a95cea.tar.bz2 re3-356f10107825fba0480edd511ec7c16818a95cea.tar.lz re3-356f10107825fba0480edd511ec7c16818a95cea.tar.xz re3-356f10107825fba0480edd511ec7c16818a95cea.tar.zst re3-356f10107825fba0480edd511ec7c16818a95cea.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioLogic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index 5b2fb75c..475914c6 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -5076,7 +5076,7 @@ cAudioManager::ProcessPedOneShots(cPedParams ¶ms) m_sQueueSample.m_bRequireReflection = true; break; case SOUND_SHIRT_WIND_FLAP: - if (params.m_pPed->IsPlayer()) { + if (params.m_pPed->IsPlayer() && params.m_pPed->m_pMyVehicle) { if (m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i] > 0.0f) { if (m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i] > 1.0f) m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i] = 1.0f; |