From 0768175c1619761ed39c33a27794c5c045beaec9 Mon Sep 17 00:00:00 2001 From: DavideRei <118212274+DavideRei@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:23:10 +0300 Subject: [PATCH] Fix PartyAdd context menu (#1283) 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 --- src/game/clients/CClientEvent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/clients/CClientEvent.cpp b/src/game/clients/CClientEvent.cpp index 1397e3da0..6f58a04b2 100644 --- a/src/game/clients/CClientEvent.cpp +++ b/src/game/clients/CClientEvent.cpp @@ -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);