diff options
author | Machiavelli <none@none> | 2009-08-26 00:09:51 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-08-26 00:09:51 +0200 |
commit | 11a8dd837eb17c1f5c8217101f21d9453c74c103 (patch) | |
tree | c7974ea3112457240f87a6787b0587cf7c79b9ba /src | |
parent | ecc6505c07ac8a1db7b2609c89822e8ac7bd9d97 (diff) |
* Unmount player before entering vehicle
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index d4f2de45931..d695cc01662 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -14744,6 +14744,8 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId) { ((Player*)this)->StopCastingCharm(); ((Player*)this)->StopCastingBindSight(); + ((Player*)this)->Unmount(); + ((Player*)this)->RemoveAurasByType(SPELL_AURA_MOUNTED); } assert(!m_vehicle); |