mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Core/Player): Delete by group (#19015)
* fix(Core/Player): Delete by group * closes https://github.com/azerothcore/azerothcore-wotlk/issues/19014 Co-Authored-By: trickerer <onlysuffering@gmail.com> * Update Player.cpp * fix build --------- Co-authored-by: trickerer <onlysuffering@gmail.com>
This commit is contained in:
@@ -3982,8 +3982,8 @@ void Player::DeleteFromDB(ObjectGuid::LowType lowGuid, uint32 accountId, bool up
|
||||
sTicketMgr->CloseTicket(ticket->GetId(), playerGuid);
|
||||
|
||||
// remove from group
|
||||
if (uint32 groupId = sCharacterCache->GetCharacterGuildIdByGuid(playerGuid))
|
||||
if (Group* group = sGroupMgr->GetGroupByGUID(groupId))
|
||||
if (ObjectGuid groupId = sCharacterCache->GetCharacterGroupGuidByGuid(playerGuid))
|
||||
if (Group* group = sGroupMgr->GetGroupByGUID(groupId.GetCounter()))
|
||||
RemoveFromGroup(group, playerGuid);
|
||||
|
||||
// Remove signs from petitions (also remove petitions if owner);
|
||||
|
||||
Reference in New Issue
Block a user