[7862] Fixed infinity loop at search spell related summoned gameobject in owner list. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-21 10:51:18 -05:00
parent 1a4378572b
commit 8d771cc9f7

View File

@@ -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;