minor bug fix

This commit is contained in:
Grinch_ 2021-01-14 12:59:24 +06:00
parent 3e51f2ff1b
commit f2315d014d

View File

@ -948,7 +948,7 @@ void Vehicle::Main()
ImGui::EndTabItem();
}
if (Command<Commands::IS_CHAR_IN_ANY_CAR>(hplayer))
if (player && player->m_pVehicle)
{
CVehicle *veh = FindPlayerPed()->m_pVehicle;
int hveh = CPools::GetVehicleRef(veh);