From 62c5f44f377ad045dfde97442abde609b04b2258 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 16 Jul 2022 19:38:48 -0400 Subject: [PATCH] Core/WorldStates: Fixed wrong prepared statement being used for saving world state values Port From (https://github.com/TrinityCore/TrinityCore/commit/7073a8bbe5bb88b8f49d27d0950b4d0d9a805597) --- Source/Game/World/WorldStateManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/World/WorldStateManager.cs b/Source/Game/World/WorldStateManager.cs index cbcb2ee96..e83db288c 100644 --- a/Source/Game/World/WorldStateManager.cs +++ b/Source/Game/World/WorldStateManager.cs @@ -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);