fix(Handling): Check against nullptr
This commit is contained in:
parent
cb5f3d58a7
commit
56722c610b
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user