From e150393c9531814adc81ac0dda0f4799e6b9e195 Mon Sep 17 00:00:00 2001 From: Spp- Date: Sun, 2 Dec 2012 17:45:15 +0100 Subject: Core/SAI: Fix SMART_EVENT_PASSENGER_REMOVED event --- src/server/game/AI/SmartScripts/SmartAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/AI/SmartScripts') diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 6aebcbb2d8a..bd528edc432 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -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() -- cgit v1.2.3