Core/Players: Corrected online flag set in database when logging out, spotted by e000
Closes #9310
This commit is contained in:
1 parent
5ab537c06a
commit
856551c981
1 file changed
+1
-1
@@ -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