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..");")