Core/DBLayer: Yet more type fixes

This commit is contained in:
Nay
2012-04-02 00:22:33 +01:00
parent 66629854d0
commit b03f895cf5
2 changed files with 3 additions and 3 deletions
@@ -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))
{