summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 15:24:20 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 15:24:20 +0100
commit356f10107825fba0480edd511ec7c16818a95cea (patch)
tree29c2345425a91452132939d223aadc8ad76cc35f /src
parentFix use of strncmp (diff)
downloadre3-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 'src')
-rw-r--r--src/audio/AudioLogic.cpp2
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 &params)
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;