mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9282] Possible fixed crash source added in [9228]
After [9228] groups stored under leader guid keys, but group leader can change and in result at group disband after leader change group not removed from storage.
This commit is contained in:
parent
b85417df73
commit
742f8df025
3 changed files with 11 additions and 1 deletions
|
|
@ -411,6 +411,11 @@ class ObjectMgr
|
|||
Group * GetGroupByLeaderLowGUID(uint32 lowguid) const;
|
||||
void AddGroup(Group* group);
|
||||
void RemoveGroup(Group* group);
|
||||
void UpdateGroup(Group* group) // when need update leader guid as group key
|
||||
{
|
||||
RemoveGroup(group);
|
||||
AddGroup(group);
|
||||
}
|
||||
|
||||
Guild* GetGuildByLeader(uint64 const&guid) const;
|
||||
Guild* GetGuildById(uint32 GuildId) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue