mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01: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 New Issue
Block a user