aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 12166cc917a..e80ccf019f2 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -8848,7 +8848,7 @@ Unit* Unit::SelectMagnetTarget(Unit *victim, SpellEntry const *spellInfo)
if(Unit* magnet = (*itr)->GetParentAura()->GetUnitSource())
if(magnet->isAlive())
{
- (*i)->GetParentAura()->DropAuraCharge();
+ (*itr)->GetParentAura()->DropAuraCharge();
return magnet;
}
}