From 84f3ca4c94837ab8b7ee8bb2aa547df03bbc7ac2 Mon Sep 17 00:00:00 2001 From: Yimura Date: Mon, 26 Jul 2021 21:21:31 +0200 Subject: [PATCH] feat(HandlingWindow): Added check for nullptr of local player --- BigBaseV2/src/gui/window/window_handling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BigBaseV2/src/gui/window/window_handling.cpp b/BigBaseV2/src/gui/window/window_handling.cpp index 201bad8c..6617218d 100644 --- a/BigBaseV2/src/gui/window/window_handling.cpp +++ b/BigBaseV2/src/gui/window/window_handling.cpp @@ -10,7 +10,7 @@ namespace big ImGui::SetNextWindowPos({ 50, 50 }, ImGuiCond_FirstUseEver); if (g.window.handling && ImGui::Begin("Handling", &g.window.handling)) { - if (g_local_player->m_vehicle == nullptr) + if (g_local_player == nullptr || g_local_player->m_vehicle == nullptr) { ImGui::Text("Please enter a vehicle to modify handling.");