diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index f081f9800..6db92c0f8 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -2100,8 +2100,7 @@ void CMenus::DoFriendListEntry(CUIRect *pView, CFriendItem *pFriend, const void { // delete button Button.Margin(1.0f, &Button); - static int s_DeleteButton = 0; - if(DoButton_SpriteCleanID(&s_DeleteButton, IMAGE_FRIENDICONS, pFriend->IsClanFriend() ? SPRITE_FRIEND_X_A : SPRITE_FRIEND_X_B, &Button, false)) + if(DoButton_SpriteClean(IMAGE_FRIENDICONS, pFriend->IsClanFriend() ? SPRITE_FRIEND_X_A : SPRITE_FRIEND_X_B, &Button)) { m_pDeleteFriendInfo = pFriend->m_pFriendInfo; }