mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-29 03:35:40 +00:00
Possible fix of ProcessVehicleOneShots crash
This commit is contained in:
parent
a13089cd2e
commit
296e7ed9ad
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue