mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user