fix(Core/Vehicle): Exit vehicle on reconnect to prevent stuck state (#25378)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c39ee954d1
commit
805ccc81e7
1 changed files with 7 additions and 0 deletions
|
|
@ -1130,6 +1130,13 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar)
|
|||
ChatHandler chH = ChatHandler(this);
|
||||
m_playerLoading = true;
|
||||
|
||||
// Exit vehicle on reconnect - the client has fully reset so
|
||||
// the player can no longer control the vehicle. Without this
|
||||
// the player is stuck: server-side still seated, but the
|
||||
// client has no vehicle UI or movement control.
|
||||
if (pCurrChar->GetVehicle())
|
||||
pCurrChar->ExitVehicle();
|
||||
|
||||
pCurrChar->SendDungeonDifficulty(false);
|
||||
|
||||
WorldPacket data(SMSG_LOGIN_VERIFY_WORLD, 20);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue