[11465] non-ObjectGuid guids in random places.

Only ChannelMgr code wide use uint64 guids now, and Map object stores.
This commit is contained in:
VladimirMangos 2011-05-10 21:24:43 +04:00
parent a925db80fa
commit ef6a48fe03
44 changed files with 219 additions and 215 deletions

View file

@ -335,14 +335,14 @@ void PetAI::UpdateAllies()
{
for (GroupReference *itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
{
Player* Target = itr->getSource();
if (!Target || !pGroup->SameSubGroup((Player*)owner, Target))
Player* target = itr->getSource();
if (!target || !pGroup->SameSubGroup((Player*)owner, target))
continue;
if (Target->GetGUID() == owner->GetGUID())
if (target->GetObjectGuid() == owner->GetObjectGuid())
continue;
m_AllySet.insert(Target->GetObjectGuid());
m_AllySet.insert(target->GetObjectGuid());
}
}
else //remove group