mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-25 15:59:24 -04:00
[7862] Fixed infinity loop at search spell related summoned gameobject in owner list. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -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