fix(Handling): Check against nullptr

This commit is contained in:
Yimura 2021-01-29 18:55:02 +01:00
parent cb5f3d58a7
commit 56722c610b
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -14,7 +14,7 @@ namespace big
if (g_in_vehicle)
{
Vehicle currVeh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
if (veh != currVeh && ped->m_vehicle != NULL)
if (veh != currVeh && ped->m_vehicle != nullptr)
{
veh = currVeh;
@ -22,5 +22,6 @@ namespace big
g_vehicle = ped->m_vehicle;
}
}
else g_vehicle = nullptr;
}
}