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:
blinkysc
2026-05-16 11:41:24 -05:00
committed by GitHub
parent 84a66e345b
commit 076016836e

View File

@@ -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>();