From fda6a6760c7ba33f349ceb943f15492257c6d6f5 Mon Sep 17 00:00:00 2001 From: Teero888 Date: Tue, 30 Jan 2024 22:05:44 +0100 Subject: [PATCH] remove redundant get() call on smart pointer --- src/game/client/components/menus_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 29485dece..79d754576 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -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;