Core/SAI: Fix SMART_EVENT_PASSENGER_REMOVED event

This commit is contained in:
Spp- authored and Vincent-Michael committed 2012-12-02 18:07:57 +01:00
1 parent f5bd0470d1
commit e150393c95
1 file changed
+1 -1
+1 -1
View File
@@ -677,7 +677,7 @@ void SmartAI::CorpseRemoved(uint32& respawnDelay)
void SmartAI::PassengerBoarded(Unit* who, int8 seatId, bool apply)
{
GetScript()->ProcessEventsFor(SMART_EVENT_PASSENGER_BOARDED, who, (uint32)seatId, 0, apply);
GetScript()->ProcessEventsFor(apply ? SMART_EVENT_PASSENGER_BOARDED : SMART_EVENT_PASSENGER_REMOVED, who, uint32(seatId), 0, apply);
}
void SmartAI::InitializeAI()