mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7340] Prevent standup at save in result unexpected packet send to client.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
b4dbeb3bc8
commit
ae1a404a04
2 changed files with 2 additions and 3 deletions
|
|
@ -15591,8 +15591,7 @@ void Player::SaveToDB()
|
||||||
uint32 tmp_displayid = GetDisplayId();
|
uint32 tmp_displayid = GetDisplayId();
|
||||||
|
|
||||||
// Set player sit state to standing on save, also stealth and shifted form
|
// Set player sit state to standing on save, also stealth and shifted form
|
||||||
SetStandState(UNIT_STAND_STATE_STAND); // stand state
|
SetByteValue(UNIT_FIELD_BYTES_1, 0, UNIT_STAND_STATE_STAND);
|
||||||
RemoveStandFlags(UNIT_STAND_FLAGS_ALL); // stand flags?
|
|
||||||
SetByteValue(UNIT_FIELD_BYTES_2, 3, 0); // shapeshift
|
SetByteValue(UNIT_FIELD_BYTES_2, 3, 0); // shapeshift
|
||||||
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
|
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
|
||||||
SetDisplayId(GetNativeDisplayId());
|
SetDisplayId(GetNativeDisplayId());
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7339"
|
#define REVISION_NR "7340"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue