fix(Core/Vehicle): Exit vehicle on reconnect to prevent stuck state (#25378)

Co-authored-by: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Andrew
2026-04-08 02:44:54 -03:00
committed by GitHub
co-authored by Claude Opus 4.6
parent c39ee954d1
commit 805ccc81e7
@@ -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);