check extended data

This commit is contained in:
BloodWod 2021-08-12 23:23:44 +05:00
parent b44dabd00d
commit 0aa2e37bff

View file

@ -203,7 +203,7 @@ void CNamePlates::RenderNameplatePos(vec2 Position, const CNetObj_PlayerInfo *pP
}
}
if(g_Config.m_Debug || g_Config.m_ClNameplatesStrong)
if((g_Config.m_Debug || g_Config.m_ClNameplatesStrong) && m_pClient->m_Snap.m_aCharacters[m_pClient->m_Snap.m_LocalClientID].m_HasExtendedData)
{
CCharacter *pCharacter = m_pClient->m_GameWorld.GetCharacterByID(pPlayerInfo->m_ClientID);
if(pCharacter)