mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
feat(HandlingWindow): Added check for nullptr of local player
This commit is contained in:
parent
6e238479a6
commit
84f3ca4c94
@ -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.");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user