Core/DBLayer: Yet more type fixes

This commit is contained in:
Nay
2012-04-02 01:25:07 +01:00
parent b03f895cf5
commit 6e4a4795ad
+2 -2
View File
@@ -2642,7 +2642,7 @@ void World::_UpdateRealmCharCount(PreparedQueryResult resultCharCount)
{
Field* fields = resultCharCount->Fetch();
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);
stmt->setUInt32(0, accountId);
@@ -2650,7 +2650,7 @@ void World::_UpdateRealmCharCount(PreparedQueryResult resultCharCount)
LoginDatabase.Execute(stmt);
stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_REALM_CHARACTERS);
stmt->setUInt32(0, charCount);
stmt->setUInt8(0, charCount);
stmt->setUInt32(1, accountId);
stmt->setUInt32(2, realmID);
LoginDatabase.Execute(stmt);