feat(HandlingWindow): Added check for nullptr of local player

This commit is contained in:
Yimura 2021-07-26 21:21:31 +02:00
parent 6e238479a6
commit 84f3ca4c94

View File

@ -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.");