mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Players: Corrected online flag set in database when logging out, spotted by e000
Closes #9310
This commit is contained in:
@@ -19113,7 +19113,7 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
stmt->setUInt8(index++, GetByteValue(PLAYER_FIELD_BYTES, 2));
|
||||
stmt->setUInt32(index++, m_grantableLevels);
|
||||
|
||||
stmt->setUInt8(index++, IsInWorld() ? 1 : 0);
|
||||
stmt->setUInt8(index++, IsInWorld() && !GetSession()->PlayerLogout() ? 1 : 0);
|
||||
// Index
|
||||
stmt->setUInt32(index++, GetGUIDLow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user