mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
[7862] Fixed infinity loop at search spell related summoned gameobject in owner list. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -4444,7 +4444,7 @@ DynamicObject * Unit::GetDynObject(uint32 spellId)
|
||||
|
||||
GameObject* Unit::GetGameObject(uint32 spellId) const
|
||||
{
|
||||
for (GameObjectList::const_iterator i = m_gameObj.begin(); i != m_gameObj.end();)
|
||||
for (GameObjectList::const_iterator i = m_gameObj.begin(); i != m_gameObj.end(); ++i)
|
||||
if ((*i)->GetSpellId() == spellId)
|
||||
return *i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user