Merge pull request #11642 from Dehravor/group-state

Core/Group: Fix online state when member logs out
This commit is contained in:
Shauren committed 2014-02-23 13:44:53 +01:00
commit 81618fb9e9
1 file changed
+1 -1
+1 -1
View File
@@ -1505,7 +1505,7 @@ void Group::SendUpdateToPlayer(uint64 playerGUID, MemberSlot* slot)
Player* member = ObjectAccessor::FindPlayer(citr->guid);
uint8 onlineState = member ? MEMBER_STATUS_ONLINE : MEMBER_STATUS_OFFLINE;
uint8 onlineState = (member && !member->GetSession()->PlayerLogout()) ? MEMBER_STATUS_ONLINE : MEMBER_STATUS_OFFLINE;
onlineState = onlineState | ((isBGGroup() || isBFGroup()) ? MEMBER_STATUS_PVP : 0);
data << citr->name;