From fd99a6f7c952f9d643a4d7890a81401973c77b7d Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 27 Oct 2018 17:51:19 +0200 Subject: [PATCH] fixed the delete friend button in the friends browser #1571 --- src/game/client/components/menus_browser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }