aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-27 12:20:33 -0600
committermegamage <none@none>2009-02-27 12:20:33 -0600
commit0c0fe3185f5cad7909bb529f6ab563d3ac0e8fcd (patch)
tree53d9a3f0c0a3b7c80a37405f67bdd9762faf3592 /src/game/Player.cpp
parent00b7908c51d400a49aa64d99abe776eca01c42dc (diff)
[7340] Prevent standup at save in result unexpected packet send to client. Author: aerione_alt
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index a5466edebd8..01ec1a62b00 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -15985,8 +15985,7 @@ void Player::SaveToDB()
uint32 tmp_displayid = GetDisplayId();
// Set player sit state to standing on save, also stealth and shifted form
- SetStandState(UNIT_STAND_STATE_STAND); // stand state
- RemoveStandFlags(UNIT_STAND_FLAGS_ALL); // stand flags?
+ SetByteValue(UNIT_FIELD_BYTES_1, 0, UNIT_STAND_STATE_STAND);
SetByteValue(UNIT_FIELD_BYTES_2, 3, 0); // shapeshift
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
SetDisplayId(GetNativeDisplayId());