mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-04 00:23:27 +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
|
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;
|
return get_net_game_player() == nullptr ? -1 : m_net_game_player->m_player_id;
|
||||||
else
|
else
|
||||||
return self::id;
|
return self::id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user