mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11539] Implement group guids with HIGHGUID_GROUP
This commit is contained in:
parent
0fbf2cf7d3
commit
5cae1c2211
9 changed files with 37 additions and 33 deletions
|
|
@ -148,8 +148,7 @@ ObjectMgr::ObjectMgr() :
|
|||
m_EquipmentSetIds("Equipment set ids"),
|
||||
m_GuildIds("Guild ids"),
|
||||
m_MailIds("Mail ids"),
|
||||
m_PetNumbers("Pet numbers"),
|
||||
m_GroupIds("Group ids")
|
||||
m_PetNumbers("Pet numbers")
|
||||
{
|
||||
// Only zero condition left, others will be added while loading DB tables
|
||||
mConditions.resize(1);
|
||||
|
|
@ -5488,8 +5487,6 @@ void ObjectMgr::PackGroupIds()
|
|||
bar.step();
|
||||
}
|
||||
|
||||
m_GroupIds.Set(groupId);
|
||||
|
||||
sLog.outString( ">> Group Ids remapped, next group id is %u", groupId );
|
||||
sLog.outString();
|
||||
}
|
||||
|
|
@ -5584,7 +5581,7 @@ void ObjectMgr::SetHighestGuids()
|
|||
result = CharacterDatabase.Query( "SELECT MAX(groupId) FROM groups" );
|
||||
if (result)
|
||||
{
|
||||
m_GroupIds.Set((*result)[0].GetUInt32()+1);
|
||||
m_GroupGuids.Set((*result)[0].GetUInt32()+1);
|
||||
delete result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue