From 437a9533f148a3401007addbeeef6ac3537e38ae Mon Sep 17 00:00:00 2001 From: Anch Date: Wed, 17 Aug 2022 17:38:22 +1200 Subject: [PATCH] missed a few dataSource conversions --- AtlasLoot/Core/Filter.lua | 2 +- AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AtlasLoot/Core/Filter.lua b/AtlasLoot/Core/Filter.lua index 2129ef3..3c34c2c 100644 --- a/AtlasLoot/Core/Filter.lua +++ b/AtlasLoot/Core/Filter.lua @@ -103,7 +103,7 @@ function AtlasLoot_Testabc() end function AtlasLoot:HideNoUsableItems() - local dataID, dataSource, tablenum = AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3]; + local dataID, dataSource, tablenum = AtlasLootItemsFrame.refreshOri[1], _G[AtlasLootItemsFrame.refreshOri[2]], AtlasLootItemsFrame.refreshOri[3]; local tablebase = dataSource[dataID][tablenum] if not tablebase or dataID == "WishList" or dataID == "SearchResult" then return end diff --git a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua index 4584a87..bdff4da 100644 --- a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua +++ b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua @@ -52,7 +52,7 @@ local lootbground = CreateFrame("Frame", "AtlasLootDefaultFrame_LootBackground", lootbground:SetBackdropColor(0,0,0.5,0.5); lootbground:EnableMouse(); lootbground:SetScript("OnMouseDown",function(self, button) - if AtlasLootItemsFrame.refresh[2][AtlasLootItemsFrame.refresh[1]].Back and button == "RightButton" then + if _G[AtlasLootItemsFrame.refresh[2]][AtlasLootItemsFrame.refresh[1]].Back and button == "RightButton" then AtlasLoot:BackButton_OnClick(); elseif AtlasLootDefaultFrame_AdvancedSearchPanel:IsVisible() and button == "RightButton" then AtlasLoot_AdvancedSearchClose();