From 5b6988948c906c1524490963f55c815d4d7f10a8 Mon Sep 17 00:00:00 2001 From: Anch Date: Fri, 28 Jan 2022 23:22:44 +1300 Subject: [PATCH] Fixed bug with table based loot tables not loading Tables wouldn't load with out first going to a subtable based boss first --- AtlasLoot/DefaultFrame/AtlaslootDefaultFrame.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrame.lua b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrame.lua index b097464..1d70e35 100644 --- a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrame.lua +++ b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrame.lua @@ -33,7 +33,7 @@ AtlasLoot_Data["AtlasLootFallback"] = { }; --[[ -AtlasLoot_DewDropClick(tablename, text, tabletype, tabletype2): +AtlasLoot_DewDropClick(tablename, text, tabletype): tablename - Name of the loot table in the database text - Heading for the loot table tabletype - Whether the tablename indexes an actual table or needs to generate a submenu @@ -44,9 +44,10 @@ function AtlasLoot_DewDropClick(tablename, text, tabletype) --Definition of where I want the loot table to be shown pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" }; --If the button clicked was linked to a loot table - if tabletype == "Table" then - --Show the loot table - AtlasLoot_ShowItemsFrame(tablename, "", text, pFrame); + + if tabletype == "Table" then + --Show the loot table + AtlasLoot_ShowBossLoot(tablename, tablename, pFrame); --Save needed info for fuure re-display of the table AtlasLoot.db.profile.LastBoss = tablename; --Purge the text label for the submenu and disable the submenu