Core: Fix some warnings

This commit is contained in:
Spp
2011-01-11 11:18:00 +01:00
parent a039086bca
commit bd2728eb74
27 changed files with 62 additions and 61 deletions
@@ -703,11 +703,13 @@ void WorldSession::HandleRequestVehicleExit(WorldPacket &recv_data)
if (Vehicle* vehicle = GetPlayer()->GetVehicle())
{
if (VehicleSeatEntry const* seat = vehicle->GetSeatForPassenger(GetPlayer()))
{
if (seat->CanEnterOrExit())
GetPlayer()->ExitVehicle();
else
sLog->outError("Player %u tried to exit vehicle, but seatflags %u (ID: %u) don't permit that.",
GetPlayer()->GetGUIDLow(), seat->m_ID, seat->m_flags);
}
}
}