aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-15 13:39:48 -0500
committermegamage <none@none>2009-05-15 13:39:48 -0500
commit0d715cfd8f3e76f2d4deb180ffbc23af93e623a9 (patch)
tree27094a12d65d3667fc1f2b4a9f9ff9cfb00eced4
parent4b782ccc1d21015618c0d372e785e10c5aa3a428 (diff)
*remove UNIT_FLAG2_FORCE_MOVE when loading players. This fix the bug that players cannot stop moving forward. By Bulkin.
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index d5f1106994a..0fec855f7a2 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -14565,6 +14565,8 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
SetUInt64Value(PLAYER_FARSIGHT, 0);
SetCreatorGUID(0);
+ RemoveFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FORCE_MOVE);
+
// reset some aura modifiers before aura apply
SetUInt32Value(PLAYER_TRACK_CREATURES, 0 );
SetUInt32Value(PLAYER_TRACK_RESOURCES, 0 );