mirror of
https://github.com/halpz/re3.git
synced 2025-01-23 06:41:00 +00: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;
|
int32 frequency;
|
||||||
CPed *pPed = params.m_pVehicle->pDriver;
|
CPed *pPed = params.m_pVehicle->pDriver;
|
||||||
if(!pPed)
|
if(!pPed)
|
||||||
break;
|
continue;
|
||||||
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
|
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
|
||||||
sampleIndex = SFX_UZI_LEFT;
|
sampleIndex = SFX_UZI_LEFT;
|
||||||
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
||||||
|
|
Loading…
Reference in a new issue