Core/DBLayer: Yet more type fixes
This commit is contained in:
@@ -5382,8 +5382,8 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp)
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_MAIL_RETURNED);
|
||||
stmt->setUInt32(0, m->receiver);
|
||||
stmt->setUInt32(1, m->sender);
|
||||
stmt->setUInt64(2, basetime + 30 * DAY);
|
||||
stmt->setUInt64(3, basetime);
|
||||
stmt->setUInt32(2, basetime + 30 * DAY);
|
||||
stmt->setUInt32(3, basetime);
|
||||
stmt->setUInt8 (4, uint8(MAIL_CHECK_MASK_RETURNED));
|
||||
stmt->setUInt32(5, m->messageID);
|
||||
CharacterDatabase.Execute(stmt);
|
||||
|
||||
@@ -461,7 +461,7 @@ void WorldSession::HandleCharCreateCallback(PreparedQueryResult result, Characte
|
||||
if (result)
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
createInfo->CharCount = fields[0].GetUInt64();
|
||||
createInfo->CharCount = uint8(fields[0].GetUInt64()); // SQL's COUNT() returns uint64 but it will always be less than uint8.Max
|
||||
|
||||
if (createInfo->CharCount >= sWorld->getIntConfig(CONFIG_CHARACTERS_PER_REALM))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user