From f2315d014d1f01d2a9d103a01720d9726f28f9e0 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Thu, 14 Jan 2021 12:59:24 +0600 Subject: [PATCH] minor bug fix --- src/Vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);