mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-23 04:27:25 +08:00
fix: crash in transition (#3091)
This commit is contained in:
parent
0fa7c580c1
commit
97bf6616ce
@ -133,7 +133,7 @@ namespace big
|
||||
|
||||
uint8_t player::id() const
|
||||
{
|
||||
if (*g_pointers->m_gta.m_is_session_started)
|
||||
if (gta_util::get_network_player_mgr()->m_player_count > 0)
|
||||
return get_net_game_player() == nullptr ? -1 : m_net_game_player->m_player_id;
|
||||
else
|
||||
return self::id;
|
||||
|
Loading…
Reference in New Issue
Block a user