mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-05 04:15:55 +00:00
Fix crash when falling from bike while shooting
This commit is contained in:
parent
84ede57205
commit
28f9160bca
|
@ -2970,6 +2970,8 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
|
|||
int32 sampleIndex;
|
||||
int32 frequency;
|
||||
CPed *pPed = params.m_pVehicle->pDriver;
|
||||
if(!pPed)
|
||||
break;
|
||||
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN)) {
|
||||
sampleIndex = SFX_UZI_LEFT;
|
||||
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
||||
|
|
Loading…
Reference in a new issue