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
@@ -772,7 +772,7 @@ namespace Game.Chat
// Update movement type
PreparedStatement stmt = DB.World.GetPreparedStatement(WorldStatements.UPD_CREATURE_MOVEMENT_TYPE);
stmt.AddValue(0, MovementGeneratorType.Waypoint);
stmt.AddValue(0, (byte)MovementGeneratorType.Waypoint);
stmt.AddValue(1, lowGuid);
DB.World.Execute(stmt);
@@ -1435,7 +1435,7 @@ namespace Game.Chat
PreparedStatement stmt = DB.World.GetPreparedStatement(WorldStatements.UPD_CREATURE_SPAWN_DISTANCE);
stmt.AddValue(0, option);
stmt.AddValue(1, mtype);
stmt.AddValue(1, (byte)mtype);
stmt.AddValue(2, guidLow);
DB.World.Execute(stmt);