diff options
| author | Nay <dnpd.dd@gmail.com> | 2012-04-02 01:25:07 +0100 |
|---|---|---|
| committer | Nay <dnpd.dd@gmail.com> | 2012-04-02 01:25:07 +0100 |
| commit | 6e4a4795adfa4aa20e45ff19060367815e4965de (patch) | |
| tree | ea7e480baf87ed93bb3deb9f654e72802b1526aa /src | |
| parent | b03f895cf5eca568134726ec9e46e2ba7f3101bb (diff) | |
Core/DBLayer: Yet more type fixes
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/World/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
