From 3733af4d6ae2615a09c421b5a6a47c4085575f91 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 29 Mar 2009 10:16:05 -0600 Subject: [PATCH] *Fix a typo of the last commit. --HG-- branch : trunk --- src/game/Unit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a0d88f922d..5c08b72830 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8089,9 +8089,11 @@ bool Unit::Attack(Unit *victim, bool meleeAttack) InterruptSpell(CURRENT_MELEE_SPELL); if(!meleeAttack) clearUnitState(UNIT_STAT_MELEE_ATTACKING); - m_attacking->_removeAttacker(this); } + if(m_attacking) + m_attacking->_removeAttacker(this); + m_attacking = victim; m_attacking->_addAttacker(this);