bug fixes

This commit is contained in:
Nikolay Korolev
2020-04-18 13:56:21 +03:00
parent d6314f9564
commit 89688843ec
2 changed files with 8 additions and 1 deletions

View File

@ -51,6 +51,12 @@ cMusicManager::PlayerInCar()
if(State == PED_DRAG_FROM_CAR || State == PED_EXIT_CAR || State == PED_ARRESTED)
return false;
if (!FindPlayerVehicle())
return true;
if (FindPlayerVehicle()->m_status == STATUS_WRECKED)
return false;
switch(FindPlayerVehicle()->m_modelIndex) {
case MI_FIRETRUCK:
case MI_AMBULAN: