mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Merge pull request #12967 from ShinDarth/PvPstats
Core/BG: use UInt64 instead of Int64 for UNSIGNED BIG INT field + clean
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user