diff options
author | megamage <none@none> | 2009-05-21 10:51:18 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-21 10:51:18 -0500 |
commit | 8d771cc9f7b8800ccf8a799740d0b95cc95b4cbe (patch) | |
tree | 3409e82187e91df540d8d0b3a47e86f3e502dd7d | |
parent | 1a4378572bb4887cc2aab1556502a838522397ca (diff) |
[7862] Fixed infinity loop at search spell related summoned gameobject in owner list. Author: VladimirMangos
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index b66564756a0..c674549380d 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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; |