mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 07:20:02 +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 sampleIndex;
|
||||||
int32 frequency;
|
int32 frequency;
|
||||||
CPed *pPed = params.m_pVehicle->pDriver;
|
CPed *pPed = params.m_pVehicle->pDriver;
|
||||||
|
if(!pPed)
|
||||||
|
break;
|
||||||
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN)) {
|
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN)) {
|
||||||
sampleIndex = SFX_UZI_LEFT;
|
sampleIndex = SFX_UZI_LEFT;
|
||||||
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
||||||
|
|
Loading…
Reference in a new issue