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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user