From 13819597ef078096086f03e6faf93f161949799f Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 4 Sep 2025 01:40:34 -0300 Subject: fix small bug with experience distribution Before checking if players are in the same party, we need to check if they're in any party at all. I made a small wrapper `TPlayer::InPartyWith` to help prevent this mistake again. --- src/operate.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/operate.cc') diff --git a/src/operate.cc b/src/operate.cc index 92c5633..33cb6ac 100644 --- a/src/operate.cc +++ b/src/operate.cc @@ -4079,10 +4079,9 @@ void JoinParty(uint32 GuestID, uint32 HostID){ } if(Guest->GetPartyLeader(true) != 0){ - bool SameParty = Guest->GetPartyLeader(true) == Host->GetPartyLeader(true); SendMessage(Guest->Connection, TALK_INFO_MESSAGE, "You are already member of %s party.", - (SameParty ? "this" : "a")); + (Guest->InPartyWith(Host, true) ? "this" : "a")); return; } -- cgit v1.2.3