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

This commit is contained in:
VladimirMangos 2009-05-21 03:41:15 +04:00
parent 75438d2736
commit 0f928164e0
2 changed files with 2 additions and 2 deletions

View file

@ -4136,7 +4136,7 @@ DynamicObject * Unit::GetDynObject(uint32 spellId)
GameObject* Unit::GetGameObject(uint32 spellId) const 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) if ((*i)->GetSpellId() == spellId)
return *i; return *i;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7861" #define REVISION_NR "7862"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__