mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 14:18:59 +00:00
Fix cAudioManager::ProcessPedOneShots crash
This commit is contained in:
parent
e00b8a93bf
commit
356f101078
1 changed files with 1 additions and 1 deletions
|
@ -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