mirror of
https://github.com/araxiaonline/AzerothCore-wotlk-with-NPCBots.git
synced 2026-06-13 03:22:24 -04:00
fix(Core/Player): preserve extra_flags when GM-state restore gate skips (#25861)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -5400,6 +5400,11 @@ bool Player::LoadFromDB(ObjectGuid playerGuid, CharacterDatabaseQueryHolder cons
|
||||
|
||||
uint32 extraflags = fields[36].Get<uint16>();
|
||||
|
||||
// Mirror before the gate below so saved bits survive when the gate
|
||||
// skips effect application; otherwise the next SaveToDB writes 0
|
||||
// over them.
|
||||
m_ExtraFlags = extraflags;
|
||||
|
||||
_LoadPetStable(fields[37].Get<uint8>(), holder.GetPreparedResult(PLAYER_LOGIN_QUERY_LOAD_PET_SLOTS));
|
||||
|
||||
m_atLoginFlags = fields[38].Get<uint16>();
|
||||
|
||||
Reference in New Issue
Block a user