aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpp- <spp@jorge.gr>2012-12-02 17:45:15 +0100
committerVincent-Michael <Vincent_Michael@gmx.de>2012-12-02 18:07:57 +0100
commite150393c9531814adc81ac0dda0f4799e6b9e195 (patch)
tree7bf386723dce86489d1bad81420fc23a00fc3cda /src
parentf5bd0470d1ec35a2d0bb75c7d0fc1c0cf60e6ad7 (diff)
Core/SAI: Fix SMART_EVENT_PASSENGER_REMOVED event
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp2
1 files changed, 1 insertions, 1 deletions
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()