diff options
| author | megamage <none@none> | 2009-03-29 10:16:05 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-29 10:16:05 -0600 |
| commit | 3733af4d6ae2615a09c421b5a6a47c4085575f91 (patch) | |
| tree | 9cb743af8dd016cdca651f799662a320148602ab | |
| parent | 666db14e7ccfedad89cc5b8c1e24e82d770a4eb6 (diff) | |
*Fix a typo of the last commit.
--HG--
branch : trunk
| -rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a0d88f922dc..5c08b728307 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); |
