Skip to content

Commit

Permalink
Fix online clan friends not being removable via UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Jul 4, 2023
1 parent 06fe736 commit ef7a8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/components/menus_browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ void CMenus::RenderServerbrowserFriends(CUIRect View)

void CMenus::PopupConfirmRemoveFriend()
{
m_pClient->Friends()->RemoveFriend(m_pRemoveFriend->Name(), m_pRemoveFriend->Clan());
m_pClient->Friends()->RemoveFriend(m_pRemoveFriend->FriendState() == IFriends::FRIEND_PLAYER ? m_pRemoveFriend->Name() : "", m_pRemoveFriend->Clan());
FriendlistOnUpdate();
Client()->ServerBrowserUpdate();
m_pRemoveFriend = nullptr;
Expand Down

0 comments on commit ef7a8d6

Please sign in to comment.