fix(ESP): Fixed esp crashing

This commit is contained in:
LiamD-Flop 2022-03-11 14:20:44 +01:00 committed by GitHub
parent f226cd3b1a
commit 18c5756eb5

View File

@ -34,7 +34,10 @@ namespace big
{
const std::unique_ptr<player>& plyr = item.second;
if (plyr->id() == gta_util::get_network_player_mgr()->m_local_net_player->m_player_id || !plyr->is_valid() || plyr->get_ped() == nullptr) continue;
if (plyr->id() == gta_util::get_network_player_mgr()->m_local_net_player->m_player_id ||
!plyr->is_valid() ||
!plyr->get_ped() ||
!plyr->get_ped()->m_navigation) continue;
rage::fvector3& player_pos = plyr->get_ped()->m_navigation->m_position;