Skip to content

Commit

Permalink
[7340] Prevent standup at save in result unexpected packet send to cl…
Browse files Browse the repository at this point in the history
…ient.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
aerione_alt authored and VladimirMangos committed Feb 26, 2009
1 parent 2bc86af commit a79273c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/game/Player.cpp
Expand Up @@ -15591,8 +15591,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());
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7339"
#define REVISION_NR "7340"
#endif // __REVISION_NR_H__

0 comments on commit a79273c

Please sign in to comment.