mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9284] Realy fixed crash source added in [9228] now.
This commit is contained in:
parent
868a4d20a4
commit
66c8c75914
4 changed files with 11 additions and 7 deletions
|
|
@ -1251,12 +1251,14 @@ void Group::_setLeader(const uint64 &guid)
|
|||
CharacterDatabase.CommitTransaction();
|
||||
}
|
||||
|
||||
uint32 old_guidlow = m_leaderGuid;
|
||||
|
||||
m_leaderGuid = slot->guid;
|
||||
m_leaderName = slot->name;
|
||||
|
||||
// Non-BG groups stored in sObjectMgr with leader low-guids as keys
|
||||
if (IsCreated() && !isBGGroup())
|
||||
sObjectMgr.UpdateGroup(this);
|
||||
sObjectMgr.UpdateGroup(old_guidlow,this);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue