Skip to content

Commit

Permalink
Fix PartyAdd context menu (#1283)
Browse files Browse the repository at this point in the history
When you click on a player to open the context menu and the party already exists, the Party Add entry is not showed. This fix the problem
  • Loading branch information
DavideRei authored Sep 10, 2024
1 parent 0998d8f commit 0768175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/clients/CClientEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2693,7 +2693,7 @@ void CClient::Event_AOSPopupMenuRequest( dword uid ) //construct packet after a
m_pPopupPacket->addOption(POPUP_PARTY_ADD, 197, POPUPFLAG_COLOR, 0xFFFF);
else if (m_pChar->m_pParty != nullptr && m_pChar->m_pParty->IsPartyMaster(m_pChar))
{
if (m_pChar->m_pParty == nullptr)
if (pChar->m_pParty == nullptr)
m_pPopupPacket->addOption(POPUP_PARTY_ADD, 197, POPUPFLAG_COLOR, 0xFFFF);
else if (pChar->m_pParty == m_pChar->m_pParty)
m_pPopupPacket->addOption(POPUP_PARTY_REMOVE, 198, POPUPFLAG_COLOR, 0xFFFF);
Expand Down

0 comments on commit 0768175

Please sign in to comment.