Clear Victim Team render info on skin changes

This commit is contained in:
Jupeyy 2023-05-27 09:10:39 +02:00
parent 144bb1dd7f
commit fe20459138

View file

@ -396,6 +396,10 @@ void CKillMessages::RefindSkins()
if(m_aKillmsgs[r].m_VictimID >= 0)
{
for(auto &VictimRenderInfo : m_aKillmsgs[r].m_VictimRenderInfo)
{
VictimRenderInfo = {};
}
const CGameClient::CClientData &Client = GameClient()->m_aClients[m_aKillmsgs[r].m_VictimID];
if(Client.m_aSkinName[0] != '\0')
m_aKillmsgs[r].m_VictimRenderInfo[0] = Client.m_RenderInfo;