mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-16 14:27:44 +08:00
fix(Handling): Check against nullptr
This commit is contained in:
parent
decbbb8fd9
commit
05300fce62
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user