aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-31 02:14:25 -0700
committermaximius <none@none>2009-10-31 02:14:25 -0700
commit52bab5854fe8571f2c397af8ecafaadfea50a99e (patch)
tree5a56a6baeba67fdfa31b0fe013416505432a1658 /src/game/Unit.cpp
parentca1e026c4f47487ed30f4b67fc1f152d84d9ee14 (diff)
*Fix a crash in Object.h
*Fix action button saving *Fix a crash on item swap in guild bank *Fix exploit moving after death in Unit.cpp *Fix assert fail at grid load in Creature.cpp Thanks Sisif for these! :) --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 8e0c1fcfe03..5d59b15ebe6 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11176,6 +11176,7 @@ void Unit::setDeathState(DeathState s)
GetMotionMaster()->Clear(false);
GetMotionMaster()->MoveIdle();
if(m_vehicleKit) m_vehicleKit->Die();
+ StopMoving();
//without this when removing IncreaseMaxHealth aura player may stuck with 1 hp
//do not why since in IncreaseMaxHealth currenthealth is checked
SetHealth(0);