Core/DBLayer: Yet more type fixes
This commit is contained in:
@@ -2642,7 +2642,7 @@ void World::_UpdateRealmCharCount(PreparedQueryResult resultCharCount)
|
|||||||
{
|
{
|
||||||
Field* fields = resultCharCount->Fetch();
|
Field* fields = resultCharCount->Fetch();
|
||||||
uint32 accountId = fields[0].GetUInt32();
|
uint32 accountId = fields[0].GetUInt32();
|
||||||
uint32 charCount = fields[1].GetUInt32();
|
uint8 charCount = uint8(fields[1].GetUInt64());
|
||||||
|
|
||||||
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_DEL_REALM_CHARACTERS_BY_REALM);
|
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_DEL_REALM_CHARACTERS_BY_REALM);
|
||||||
stmt->setUInt32(0, accountId);
|
stmt->setUInt32(0, accountId);
|
||||||
@@ -2650,7 +2650,7 @@ void World::_UpdateRealmCharCount(PreparedQueryResult resultCharCount)
|
|||||||
LoginDatabase.Execute(stmt);
|
LoginDatabase.Execute(stmt);
|
||||||
|
|
||||||
stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_REALM_CHARACTERS);
|
stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_REALM_CHARACTERS);
|
||||||
stmt->setUInt32(0, charCount);
|
stmt->setUInt8(0, charCount);
|
||||||
stmt->setUInt32(1, accountId);
|
stmt->setUInt32(1, accountId);
|
||||||
stmt->setUInt32(2, realmID);
|
stmt->setUInt32(2, realmID);
|
||||||
LoginDatabase.Execute(stmt);
|
LoginDatabase.Execute(stmt);
|
||||||
|
|||||||
Reference in New Issue
Block a user