Core/Players: Corrected online flag set in database when logging out, spotted by e000

Closes #9310
This commit is contained in:
Shauren committed 2013-03-05 22:36:58 +01:00
1 parent 5ab537c06a
commit 856551c981
1 file changed
+1 -1
+1 -1
View File
@@ -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());
}