diff options
author | megamage <none@none> | 2009-04-21 14:05:54 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-21 14:05:54 -0500 |
commit | 297498f1f7343f2c653075a45f36fcb46d833ef0 (patch) | |
tree | 03208854e2e66bcca87ab7b9a4e9d18ec54215e2 /src/game/Unit.cpp | |
parent | e20e65ced9efd11a009fd63bcd4047ecc4bd3e63 (diff) |
*Fix the bug that all vehicles are broken.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 7dec93b881e..4288ce1e58f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10206,7 +10206,7 @@ void Unit::setDeathState(DeathState s) UnsummonAllTotems(); RemoveAllControlled(); RemoveAllAurasOnDeath(); - if(m_Vehicle) m_Vehicle->RemovePassenger(this); + ExitVehicle(); //This is needed to clear visible auras after unit dies ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false); @@ -11172,7 +11172,7 @@ void Unit::RemoveFromWorld() RemoveCharmAuras(); RemoveBindSightAuras(); RemoveNotOwnSingleTargetAuras(); - if(m_Vehicle) m_Vehicle->RemovePassenger(this); + ExitVehicle(); if(GetCharmerGUID()) sLog.outCrash("Unit %u has charmer guid when removed from world", GetEntry()); |