mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 08:11:49 +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;
|
||||
CPed *pPed = params.m_pVehicle->pDriver;
|
||||
if(!pPed)
|
||||
break;
|
||||
continue;
|
||||
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
|
||||
sampleIndex = SFX_UZI_LEFT;
|
||||
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user