Core/Vehicles: Fix a typo in AddPassenger.

Thanks to cyberbrest
This commit is contained in:
Machiavelli
2011-01-01 23:20:08 +01:00
parent 81c358d6dc
commit ce76f10bc8

View File

@@ -287,7 +287,7 @@ bool Vehicle::AddPassenger(Unit *unit, int8 seatId, bool byAura)
if (seatId < 0) // no specific seat requirement
{
for (seat = m_Seats.begin(); seat != m_Seats.end(); ++seat)
if (!seat->second.passenger && (!(byAura && seat->second.seatInfo->CanEnterOrExit()) || (byAura && seat->second.seatInfo->IsUsableByAura())))
if (!seat->second.passenger && (!byAura && seat->second.seatInfo->CanEnterOrExit()) || (byAura && seat->second.seatInfo->IsUsableByAura()))
break;
if (seat == m_Seats.end()) // no available seat