fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
parent
2fcafa5f39
commit
4103fca5a4
40 changed files with 69 additions and 69 deletions
|
|
@ -212,7 +212,7 @@ void GameObject::ClearRitualList()
|
|||
if (!animSpell || m_unique_users.empty())
|
||||
return;
|
||||
|
||||
for (ObjectGuid const guid : m_unique_users)
|
||||
for (ObjectGuid const& guid : m_unique_users)
|
||||
{
|
||||
if (Player* channeler = ObjectAccessor::GetPlayer(*this, guid))
|
||||
if (Spell* spell = channeler->GetCurrentSpell(CURRENT_CHANNELED_SPELL))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue