diff --git a/src/Vehicle.cpp b/src/Vehicle.cpp index 0b020aa..d228012 100644 --- a/src/Vehicle.cpp +++ b/src/Vehicle.cpp @@ -948,7 +948,7 @@ void Vehicle::Main() ImGui::EndTabItem(); } - if (Command(hplayer)) + if (player && player->m_pVehicle) { CVehicle *veh = FindPlayerPed()->m_pVehicle; int hveh = CPools::GetVehicleRef(veh);