Core/Auras: Fix aura positivity check after rev bb4bd46d21.
This commit is contained in:
@@ -16330,7 +16330,7 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId, AuraApplication const * a
|
||||
if (seatId >= 0 && seatId != GetTransSeat())
|
||||
{
|
||||
sLog->outDebug("EnterVehicle: %u leave vehicle %u seat %d and enter %d.", GetEntry(), m_vehicle->GetBase()->GetEntry(), GetTransSeat(), seatId);
|
||||
ChangeSeat(seatId, bool(aurApp));
|
||||
ChangeSeat(seatId, aurApp != NULL);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -16364,7 +16364,7 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId, AuraApplication const * a
|
||||
|
||||
ASSERT(!m_vehicle);
|
||||
m_vehicle = vehicle;
|
||||
if (!m_vehicle->AddPassenger(this, seatId, bool(aurApp)))
|
||||
if (!m_vehicle->AddPassenger(this, seatId, aurApp != NULL))
|
||||
{
|
||||
m_vehicle = NULL;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user