mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7862] Fixed infinity loop at search spell related summoned gameobject in owner list.
This commit is contained in:
parent
75438d2736
commit
0f928164e0
2 changed files with 2 additions and 2 deletions
|
|
@ -4136,7 +4136,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue