Core/DB: Fixes sometimes wrong values added to DB, also fixes errors when trying to convert updatefield to object.

This commit is contained in:
hondacrx
2021-04-21 18:06:46 -04:00
parent 897ca11273
commit ba064327b0
30 changed files with 149 additions and 89 deletions
+2 -2
View File
@@ -689,9 +689,9 @@ namespace Game.BattleGrounds
stmt = DB.Characters.GetPreparedStatement(CharStatements.INS_PVPSTATS_BATTLEGROUND);
stmt.AddValue(0, battlegroundId);
stmt.AddValue(1, GetWinner());
stmt.AddValue(1, (byte)GetWinner());
stmt.AddValue(2, GetUniqueBracketId());
stmt.AddValue(3, GetTypeID(true));
stmt.AddValue(3, (byte)GetTypeID(true));
DB.Characters.Execute(stmt);
}