Core/DBLayer: Yet more type fixes
This commit is contained in:
@@ -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