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/"
This commit is contained in:
higurush
2021-06-05 16:16:32 +02:00
parent 885a17778e
commit 6ab66f9fec
+1 -1
View File
@@ -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