Skip to content

Commit

Permalink
Fix player rooted after using a vehicule
Browse files Browse the repository at this point in the history
  • Loading branch information
xfurry authored and Cyberium committed Jul 23, 2016
1 parent 88f7052 commit ef1ddc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/Vehicle.cpp
Expand Up @@ -313,6 +313,9 @@ void VehicleInfo::UnBoard(Unit* passenger, bool changeVehicle)

UnBoardPassenger(passenger); // Use TransportBase to remove the passenger from storage list

// Remove passenger modifications
RemoveSeatMods(passenger, seatEntry->m_flags);

if (!changeVehicle) // Send expected unboarding packages
{
// Update movementInfo
Expand Down Expand Up @@ -347,9 +350,6 @@ void VehicleInfo::UnBoard(Unit* passenger, bool changeVehicle)
}
}

// Remove passenger modifications
RemoveSeatMods(passenger, seatEntry->m_flags);

// Some creature vehicles get despawned after passenger unboarding
if (m_owner->GetTypeId() == TYPEID_UNIT)
{
Expand Down

0 comments on commit ef1ddc6

Please sign in to comment.