*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
This commit is contained in:
maximius
2009-10-31 02:14:25 -07:00
parent ca1e026c4f
commit 52bab5854f
5 changed files with 15 additions and 5 deletions

View File

@@ -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);