diff options
author | Duarte Duarte <dnpd.dd@gmail.com> | 2014-08-29 16:20:03 +0100 |
---|---|---|
committer | Duarte Duarte <dnpd.dd@gmail.com> | 2014-08-29 16:20:03 +0100 |
commit | 88809359e7fa84f808aabb528dca2a77a8eb9816 (patch) | |
tree | a1f8faac69e07b077dd3d773565354a9fefa1b76 | |
parent | 76943f738e8bdaee93611f71a09b9844a8a20934 (diff) | |
parent | f3f607179702b98f784ef30c2f967b3ecaadf534 (diff) |
Merge pull request #12967 from ShinDarth/PvPstats
Core/BG: use UInt64 instead of Int64 for UNSIGNED BIG INT field + clean
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index c88f9beee15..69f6666dff3 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -724,7 +724,7 @@ void Battleground::EndBattleground(uint32 winner) if (result) { Field* fields = result->Fetch(); - battleground_id = fields[0].GetInt64() + 1; + battleground_id = fields[0].GetUInt64() + 1; } stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_PVPSTATS_BATTLEGROUND); @@ -810,8 +810,6 @@ void Battleground::EndBattleground(uint32 winner) stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_PVPSTATS_PLAYER); BattlegroundScoreMap::const_iterator score = PlayerScores.find(player->GetGUIDLow()); - // battleground_id, character_guid, score_killing_blows, score_deaths, score_honorable_kills, score_bonus_honor, score_damage_done, score_healing_done - stmt->setUInt32(0, battleground_id); stmt->setUInt32(1, player->GetGUIDLow()); stmt->setUInt32(2, score->second->GetKillingBlows()); |