aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 567a3628c9c..038a8cdcb1a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -14555,11 +14555,17 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId)
if(m_Vehicle == vehicle)
{
if(seatId >= 0)
+ {
+ sLog.outDebug("EnterVehicle: %u leave vehicle %u seat %d and enter %d.", GetEntry(), m_Vehicle->GetEntry(), GetTransSeat(), seatId);
ChangeSeat(seatId);
+ }
return;
}
else
+ {
+ sLog.outDebug("EnterVehicle: %u exit %u and enter %u.", GetEntry(), m_Vehicle->GetEntry(), vehicle->GetEntry());
ExitVehicle();
+ }
}
if(GetTypeId() == TYPEID_PLAYER)