remove redundant get() call on smart pointer

This commit is contained in:
Teero888 2024-01-30 22:05:44 +01:00
parent cef4358560
commit fda6a6760c

View file

@ -440,7 +440,7 @@ void CMenus::RandomSkin()
{
auto it = m_pClient->m_Skins.GetSkinsUnsafe().begin();
std::advance(it, rand() % m_pClient->m_Skins.GetSkinsUnsafe().size());
str_copy(aRandomSkinName, (*it).second.get()->GetName(), SkinNameSize);
str_copy(aRandomSkinName, (*it).second->GetName(), SkinNameSize);
} while(!str_comp(aRandomSkinName, "x_ninja") || !str_comp(aRandomSkinName, "x_spec"));
}
char *pSkinName = !m_Dummy ? g_Config.m_ClPlayerSkin : g_Config.m_ClDummySkin;