fix(Core/Vehicle): Fix invisible vehicle passengers (#23406)

This commit is contained in:
killerwife
2025-10-26 02:25:43 +01:00
committed by GitHub
parent dfd21be75b
commit 1b2db00701
7 changed files with 77 additions and 38 deletions

View File

@@ -19542,6 +19542,9 @@ void Unit::_ExitVehicle(Position const* exitPosition)
if (!vehicleBase)
return;
if (IsPlayer())
ToPlayer()->SetExpectingChangeTransport(true);
SetControlled(false, UNIT_STATE_ROOT); // SMSG_MOVE_FORCE_UNROOT, ~MOVEMENTFLAG_ROOT
Position pos;