Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp
This commit is contained in:
commit
676c7341d6
61 files changed
+3376
-1643
No files matched your search
@@ -15771,7 +15771,7 @@ void Unit::ChangeSeat(int8 seatId, bool next)
|
||||
|
||||
SeatMap::const_iterator seat = (seatId < 0 ? m_vehicle->GetNextEmptySeat(GetTransSeat(), next) : m_vehicle->Seats.find(seatId));
|
||||
// The second part of the check will only return true if seatId >= 0. @Vehicle::GetNextEmptySeat makes sure of that.
|
||||
if (seat == m_vehicle->Seats.end() || seat->second.Passenger)
|
||||
if (seat == m_vehicle->Seats.end() || !seat->second.IsEmpty())
|
||||
return;
|
||||
|
||||
AuraEffect* rideVehicleEffect = NULL;
|
||||
@@ -16426,7 +16426,7 @@ void Unit::OutDebugInfo() const
|
||||
{
|
||||
o << "Passenger List: ";
|
||||
for (SeatMap::iterator itr = GetVehicleKit()->Seats.begin(); itr != GetVehicleKit()->Seats.end(); ++itr)
|
||||
if (Unit* passenger = ObjectAccessor::GetUnit(*GetVehicleBase(), itr->second.Passenger))
|
||||
if (Unit* passenger = ObjectAccessor::GetUnit(*GetVehicleBase(), itr->second.Passenger.Guid))
|
||||
o << passenger->GetGUID() << ", ";
|
||||
TC_LOG_INFO(LOG_FILTER_UNITS, "%s", o.str().c_str());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user