mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Vehicle: Don't set players movementInfo on vehicle dismiss (#29744)
This commit is contained in:
@@ -30,8 +30,12 @@ void WorldSession::HandleMoveDismissVehicle(WorldPackets::Vehicle::MoveDismissVe
|
||||
if (vehicleGUID.IsEmpty())
|
||||
return;
|
||||
|
||||
_player->ValidateMovementInfo(&moveDismissVehicle.Status);
|
||||
_player->m_movementInfo = moveDismissVehicle.Status;
|
||||
if (moveDismissVehicle.Status.guid != vehicleGUID)
|
||||
{
|
||||
TC_LOG_ERROR("network", "Player {} tried to dismiss a controlled vehicle ({}) that he has no control over. Possible cheater or malformed packet.",
|
||||
GetPlayer()->GetGUID().ToString().c_str(), vehicleGUID.ToString().c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
_player->ExitVehicle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user