fixed the delete friend button in the friends browser #1571

This commit is contained in:
oy 2018-10-27 17:51:19 +02:00
parent 6bea95dbfa
commit fd99a6f7c9

View file

@ -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;
}