From 11a8dd837eb17c1f5c8217101f21d9453c74c103 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Wed, 26 Aug 2009 00:09:51 +0200 Subject: * Unmount player before entering vehicle --HG-- branch : trunk --- src/game/Unit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3