[7862] Fixed infinity loop at search spell related summoned gameobject in owner list. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
1 parent
1a4378572b
commit
8d771cc9f7
1 file changed
+1
-1
+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