minor bug fix
This commit is contained in:
parent
3e51f2ff1b
commit
f2315d014d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user