This commit is contained in:
Roman Masanin 2020-11-04 11:37:17 +03:00
parent 174424c520
commit 89b622eea8

View File

@ -2962,7 +2962,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams *params)
if (Pads[0].GetHandBrake() == 0) {
playerVeh = FindPlayerVehicle();
playerPed = FindPlayerPed();
if (playerVeh == 0 && playerPed != 0) {
if (playerVeh == nil && playerPed != nil) {
if (playerPed->m_attachedTo != nil && playerPed->m_attachedTo->GetType() == ENTITY_TYPE_VEHICLE)
playerVeh = (CVehicle*)playerPed->m_attachedTo;
}