From 4dd0bab62bfb1088ec9698173e7c649d9ca59f2e Mon Sep 17 00:00:00 2001 From: Anch Date: Sat, 6 Aug 2022 14:02:10 +1200 Subject: [PATCH] fixed next/prev buttons not showing on some tables --- AtlasLoot/Core/AtlasLoot.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AtlasLoot/Core/AtlasLoot.lua b/AtlasLoot/Core/AtlasLoot.lua index 848b913..4e300b1 100644 --- a/AtlasLoot/Core/AtlasLoot.lua +++ b/AtlasLoot/Core/AtlasLoot.lua @@ -750,13 +750,13 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame, tablenum) getglobal("AtlasLootItemsFrame_NEXT"):Hide(); getglobal("AtlasLootItemsFrame_PREV"):Hide(); - if tablenum + 1 ~= #dataSource[dataID] then + if tablenum ~= #dataSource[dataID] then getglobal("AtlasLootItemsFrame_NEXT"):Show(); if dataID ~= "FilterList" then getglobal("AtlasLootItemsFrame_NEXT").tablenum = tablenum + 1; end end - if tablenum - 1 ~= 0 then + if tablenum ~= 1 then getglobal("AtlasLootItemsFrame_PREV"):Show(); if dataID ~= "FilterList" then getglobal("AtlasLootItemsFrame_PREV").tablenum = tablenum - 1;