aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 2ef69144086..1c9afc1538a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -15731,6 +15731,11 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId)
((Player*)this)->StopCastingBindSight();
((Player*)this)->Unmount();
((Player*)this)->RemoveAurasByType(SPELL_AURA_MOUNTED);
+
+ // drop flag at invisible in bg
+ if(((Player*)this)->InBattleGround())
+ if(BattleGround *bg = ((Player*)this)->GetBattleGround())
+ bg->EventPlayerDroppedFlag((Player*)this);
}
assert(!m_vehicle);