From 6ab66f9fec8b7866c047d07df171b0586f91583c Mon Sep 17 00:00:00 2001 From: higurush Date: Sat, 5 Jun 2021 16:16:32 +0200 Subject: [PATCH] Prevent AtlasLoot from breaking on non-existant loot table When a loot table does not exists, and AtlasLoot tries to fetch it, the whole thing breaks. This change will prevent that and also writes out for the client on which table is missing, for example: "AtlasLoot Error! KaraAttumenHEROIC not listed in loot table registry, please report this message to the AtlasLoot forums at http://www.atlasloot.net/" --- AtlasLoot/Core/AtlasLoot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AtlasLoot/Core/AtlasLoot.lua b/AtlasLoot/Core/AtlasLoot.lua index 4c6e081..39a618c 100644 --- a/AtlasLoot/Core/AtlasLoot.lua +++ b/AtlasLoot/Core/AtlasLoot.lua @@ -635,7 +635,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame) getglobal("AtlasLootItem_"..i).spellitemID = 0; end - if AtlasLoot_TableNames[dataID][2] == "Menu" then + if AtlasLoot_TableNames[dataID] ~= nil and AtlasLoot_TableNames[dataID][2] == "Menu" then AtlasLoot_GenerateAtlasMenu(dataID, pFrame); return; end