mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2025-02-20 03:52:44 +01:00
Possible fix of ProcessVehicleOneShots crash
This commit is contained in:
parent
a13089cd2e
commit
296e7ed9ad
@ -3341,7 +3341,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
|
|||||||
int32 frequency;
|
int32 frequency;
|
||||||
CPed *pPed = params.m_pVehicle->pDriver;
|
CPed *pPed = params.m_pVehicle->pDriver;
|
||||||
if(!pPed)
|
if(!pPed)
|
||||||
break;
|
continue;
|
||||||
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
|
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
|
||||||
sampleIndex = SFX_UZI_LEFT;
|
sampleIndex = SFX_UZI_LEFT;
|
||||||
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user