aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-15 22:48:52 -0500
committermegamage <none@none>2009-08-15 22:48:52 -0500
commit9f3d1a4a3b86e7f97676580985c7d9668aa9daf1 (patch)
tree264a720597287ad2eb856f3528c7b39818d35090 /src
parentf2a22871a2d33b8416a7c9a21a3e9f1d844ced02 (diff)
*Fix the bug that player sometimes take fall damage when exit vehicle.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 038a8cdcb1a..179b1104ac3 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -14643,6 +14643,7 @@ void Unit::ExitVehicle()
{
//((Player*)this)->SetClientControl(this, 1);
((Player*)this)->SendTeleportAckMsg();
+ ((Player*)this)->SetFallInformation(0, GetPositionZ());
}
WorldPacket data;
BuildHeartBeatMsg(&data);