Merge pull request #17 from Szyler/bugfix/PreventBreakOnFailedLootTable

Prevent AtlasLoot from breaking on non-existant loot table
This commit is contained in:
Szyler
2021-06-16 13:20:30 +02:00
committed by GitHub
+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