mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Players): Properly save resting state to DB. (#8014)
Fixes #7782
This commit is contained in:
@@ -13832,6 +13832,7 @@ void Player::_SaveCharacter(bool create, CharacterDatabaseTransaction trans)
|
||||
stmt->setString(index++, ss.str());
|
||||
stmt->setUInt8(index++, GetByteValue(PLAYER_FIELD_BYTES, 2));
|
||||
stmt->setUInt32(index++, m_grantableLevels);
|
||||
stmt->setUInt32(index++, _innTriggerId);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -13970,6 +13971,7 @@ void Player::_SaveCharacter(bool create, CharacterDatabaseTransaction trans)
|
||||
stmt->setString(index++, ss.str());
|
||||
stmt->setUInt8(index++, GetByteValue(PLAYER_FIELD_BYTES, 2));
|
||||
stmt->setUInt32(index++, m_grantableLevels);
|
||||
stmt->setUInt32(index++, _innTriggerId);
|
||||
|
||||
stmt->setUInt8(index++, IsInWorld() && !GetSession()->PlayerLogout() ? 1 : 0);
|
||||
// Index
|
||||
|
||||
Reference in New Issue
Block a user