From 56722c610b70b7af3d64c0507a3501a57a787d60 Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 29 Jan 2021 18:55:02 +0100 Subject: [PATCH] fix(Handling): Check against nullptr --- BigBaseV2/src/features/looped/vehicle/handling.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BigBaseV2/src/features/looped/vehicle/handling.cpp b/BigBaseV2/src/features/looped/vehicle/handling.cpp index 2a00c20c..7511c29e 100644 --- a/BigBaseV2/src/features/looped/vehicle/handling.cpp +++ b/BigBaseV2/src/features/looped/vehicle/handling.cpp @@ -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; } } \ No newline at end of file