From c9361640b5eb54d046ed6969107a6a618adb3b74 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Mon, 10 Mar 2025 21:08:48 -0400 Subject: [PATCH] Core/Quests: assign a unique alias to ID fields loaded from quest_visual_effect Port From (https://github.com/TrinityCore/TrinityCore/commit/a69def739b77780aaa9ba74959035514d43430f8) --- Source/Game/Globals/ObjectManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index fe9cb2179..58eef212f 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -7385,8 +7385,8 @@ namespace Game } // Load `quest_visual_effect` join table with quest_objectives because visual effects are based on objective ID (core stores objectives by their index in quest) - // 0 1 2 3 4 - result = DB.World.Query("SELECT v.ID, o.ID, o.QuestID, v.Index, v.VisualEffect FROM quest_visual_effect AS v LEFT JOIN quest_objectives AS o ON v.ID = o.ID ORDER BY v.Index DESC"); + // 0 1 2 3 4 + result = DB.World.Query("SELECT v.ID AS vID, o.ID AS oID, o.QuestID, v.Index, v.VisualEffect FROM quest_visual_effect AS v LEFT JOIN quest_objectives AS o ON v.ID = o.ID ORDER BY v.Index DESC"); if (result.IsEmpty()) { Log.outInfo(LogFilter.ServerLoading, "Loaded 0 quest visual effects. DB table `quest_visual_effect` is empty.");