Permalink
Browse files

FIXED: Player stuck in vehicle when teleporting withing a map.

  • Loading branch information...
dfighter1985 committed Feb 10, 2012
1 parent b48e593 commit e51d590c36b6f4a456150969b5db2b350484d9a4
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/arcemu-world/Player.cpp
@@ -8360,6 +8360,10 @@ bool Player::SafeTeleport(uint32 MapID, uint32 InstanceID, const LocationVector
flying_aura = 0;
}
// Exit vehicle before teleporting
if( GetVehicleBase() != NULL )
GetVehicleBase()->GetVehicleComponent()->EjectPassenger( this );
// Lookup map info
if(mi && mi->flags & WMI_INSTANCE_XPACK_01 && !m_session->HasFlag(ACCOUNT_FLAG_XPACK_01) && !m_session->HasFlag(ACCOUNT_FLAG_XPACK_02))
{

0 comments on commit e51d590

Please sign in to comment.