mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-05 10:35:54 +00:00
Fix cAudioManager::ProcessPedOneShots crash
This commit is contained in:
parent
e00b8a93bf
commit
356f101078
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue