*Fix a typo that causes crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-14 09:01:55 -06:00
parent 32604a75f6
commit e82dd549b8

View File

@@ -539,7 +539,7 @@ void Unit::RemoveAuraTypeByCaster(AuraType auraType, uint64 casterGUID)
{
if (auraType >= TOTAL_AURAS) return;
AuraList::iterator iter, next;
for(iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end(); ++iter)
for(iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end(); iter = next)
{
next = iter;
++next;