Core/Auras: Fix aura positivity check after rev bb4bd46d21.

This commit is contained in:
QAston
2010-12-31 16:12:29 +01:00
parent dd5a77bebc
commit 1b18a0ac65
2 changed files with 28 additions and 15 deletions
+2 -2
View File
@@ -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;