fix: crash in transition (#3091)
This commit is contained in:
parent
f15cb312e7
commit
f81d40854d
@ -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;
|
||||
|
Reference in New Issue
Block a user