From d3e30b50a1ef0f5cec7ec5a00754f52a4701330c Mon Sep 17 00:00:00 2001 From: Wolkenschutz <86602366+Wolkenschutz@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:23:22 +0100 Subject: [PATCH] Fix: Fixed Catalyst items for people who had never favorited a Catalyst item (Thanks Kuuhaku@WoW) --- api/catalyst.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/catalyst.lua b/api/catalyst.lua index a477443..c0d49ff 100644 --- a/api/catalyst.lua +++ b/api/catalyst.lua @@ -188,7 +188,7 @@ function Catalyst:Update() if (Addon.Database:IsFavoritesShowAllSpecs()) then _itemList = Addon.Database:GetFavoritesForMapID(mapID); else - _itemList = Addon.Database:GetFavorites(mapID, specID) or {}; + _itemList = Addon.Database:GetFavorites(mapID, specID); end elseif (catalystItemList[slotID] ~= nil) then local itemInfo = catalystItemList[slotID][classID]; @@ -198,7 +198,7 @@ function Catalyst:Update() }; end - for itemID, itemInfo in next, _itemList do + for itemID, itemInfo in next, _itemList or {} do numItems = numItems + 1; local Frame = GetItemFrame(numItems);