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
@@ -527,7 +527,7 @@ namespace Game
{
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.REP_ACCOUNT_DATA);
stmt.AddValue(0, GetAccountId());
stmt.AddValue(1, type);
stmt.AddValue(1, (byte)type);
stmt.AddValue(2, time);
stmt.AddValue(3, data);
DB.Characters.Execute(stmt);
@@ -540,7 +540,7 @@ namespace Game
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.REP_PLAYER_ACCOUNT_DATA);
stmt.AddValue(0, m_GUIDLow);
stmt.AddValue(1, type);
stmt.AddValue(1, (byte)type);
stmt.AddValue(2, time);
stmt.AddValue(3, data);
DB.Characters.Execute(stmt);