fix: crash in transition (#3091)

This commit is contained in:
Mr-X-GTA 2024-05-11 20:43:00 +02:00 committed by GitHub
parent 0fa7c580c1
commit 97bf6616ce

View File

@ -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;