From 6e4a4795adfa4aa20e45ff19060367815e4965de Mon Sep 17 00:00:00 2001 From: Nay Date: Mon, 2 Apr 2012 01:25:07 +0100 Subject: Core/DBLayer: Yet more type fixes --- src/server/game/World/World.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 953eafcd3da..9b40c8f5654 100755 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -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); -- cgit v1.2.3