fix(Core/Vehicle): no longer eject and overwrite an existing passenger (#25591)

Reject boarding a specific occupied seat instead of force-ejecting the current passenger. Followup to #25587 (Hyldnir Harpoon seat overwrite).
This commit is contained in:
sogladev
2026-06-16 21:27:44 +02:00
committed by GitHub
parent 42ea2271ed
commit 0d07c33611
+1 -6
View File
@@ -359,12 +359,7 @@ bool Vehicle::AddPassenger(Unit* unit, int8 seatId)
return false;
if (!seat->second.IsEmpty())
{
if (Unit* passenger = ObjectAccessor::GetUnit(*GetBase(), seat->second.Passenger.Guid))
passenger->ExitVehicle();
seat->second.Passenger.Guid.Clear();
}
return false;
ASSERT(seat->second.IsEmpty());
}