mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[11465] non-ObjectGuid guids in random places.
Only ChannelMgr code wide use uint64 guids now, and Map object stores.
This commit is contained in:
parent
a925db80fa
commit
ef6a48fe03
44 changed files with 219 additions and 215 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue