mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 17:49:16 +01: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 New Issue
Block a user