From 397aab3b31e1f260cf01cfce8a75306d82e596a3 Mon Sep 17 00:00:00 2001 From: sindoring Date: Mon, 9 Mar 2026 21:32:11 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=BC=D0=B0=D0=B3?= =?UTF-8?q?=D0=B0=D0=B7=D0=B8=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua_scripts/Store_System/Store_DataStruct.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua_scripts/Store_System/Store_DataStruct.lua b/lua_scripts/Store_System/Store_DataStruct.lua index cec9e0e..04806d2 100644 --- a/lua_scripts/Store_System/Store_DataStruct.lua +++ b/lua_scripts/Store_System/Store_DataStruct.lua @@ -162,6 +162,12 @@ function CreatureDisplays.Load() end end + -- If the store DB is unavailable or there are no creature-backed services, + -- avoid generating invalid SQL such as `IN ()`. + if (tmp == "") then + return + end + local Query = nil if(GetCoreName() == "TrinityCore") then Query = WorldDBQuery("SELECT entry, `name`, subname, IconName, type_flags, `type`, family, `rank`, KillCredit1, KillCredit2, HealthModifier, ManaModifier, RacialLeader, MovementType, modelId1, modelId2, modelId3, modelId4 FROM creature_template WHERE entry IN ("..tmp..");")