mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed the delete friend button in the friends browser #1571
This commit is contained in:
parent
6bea95dbfa
commit
fd99a6f7c9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue