[11539] Implement group guids with HIGHGUID_GROUP

This commit is contained in:
zergtmn 2011-05-25 19:55:30 +06:00
parent 0fbf2cf7d3
commit 5cae1c2211
9 changed files with 37 additions and 33 deletions

View file

@ -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;
}