mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
fix(Spectate): Check if player is valid while spectating
This commit is contained in:
parent
1dc68d23e1
commit
445514c8bf
@ -9,7 +9,7 @@ namespace big
|
||||
|
||||
void looped::player_specate()
|
||||
{
|
||||
if (g_player_service->m_selected_player == nullptr || !g.player.spectating)
|
||||
if (g_player_service->m_selected_player == nullptr || !g_player_service->m_selected_player->is_valid() || !g.player.spectating)
|
||||
{
|
||||
if (g.player.spectating) g.player.spectating = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user