fix msvc complaining

This commit is contained in:
Teero888 2024-01-30 22:28:55 +01:00
parent fda6a6760c
commit e3dc26a81b

View file

@ -432,7 +432,7 @@ void CMenus::RandomSkin()
}
const size_t SkinNameSize = !m_Dummy ? sizeof(g_Config.m_ClPlayerSkin) : sizeof(g_Config.m_ClDummySkin);
char aRandomSkinName[SkinNameSize];
char aRandomSkinName[24];
str_copy(aRandomSkinName, "default", SkinNameSize);
if(!m_pClient->m_Skins.GetSkinsUnsafe().empty())
{