aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-13 14:42:57 -0600
committermegamage <none@none>2009-03-13 14:42:57 -0600
commit146b2560aa8a7d0fc8a90ec3af70d1a8e01e514d (patch)
tree295c0631404e49ec8acd492513ca614038ca6253 /src/game/Unit.cpp
parentbb7391f129e831cd5daac17d54245738571c5d32 (diff)
*Call stopmoving in moveidle.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index e3e11c2e840..d8c4d3bb16a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -10394,7 +10394,6 @@ void Unit::setDeathState(DeathState s)
ClearDiminishings();
GetMotionMaster()->Clear(false);
GetMotionMaster()->MoveIdle();
- StopMoving();
//without this when removing IncreaseMaxHealth aura player may stuck with 1 hp
//do not why since in IncreaseMaxHealth currenthealth is checked
SetHealth(0);
@@ -13138,7 +13137,6 @@ void Unit::SetCharmedOrPossessedBy(Unit* charmer, bool possess)
if(GetTypeId() == TYPEID_UNIT)
{
((Creature*)this)->AI()->OnCharmed(true);
- StopMoving();
GetMotionMaster()->Clear(false);
GetMotionMaster()->MoveIdle();
}