Core/WorldStates: Fixed wrong prepared statement being used for saving world state values

Port From (https://github.com/TrinityCore/TrinityCore/commit/7073a8bbe5bb88b8f49d27d0950b4d0d9a805597)
This commit is contained in:
hondacrx
2022-07-16 19:38:48 -04:00
parent c2c93fa061
commit 62c5f44f37
+1 -1
View File
@@ -241,7 +241,7 @@ namespace Game
if (GetWorldStateTemplate(worldStateId) == null)
return;
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.REP_WORLD_VARIABLE);
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.REP_WORLD_STATE);
stmt.AddValue(0, worldStateId);
stmt.AddValue(1, value);
DB.Characters.Execute(stmt);