Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OutfitterBar.lua for errors in change icon filter options #144

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions OutfitterBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ function Outfitter.OutfitBar.TextureSets.Spellbook:Activate()

for _, professionID in ipairs(professions) do
local name, iconID = GetProfessionInfo(professionID)
if not usedIconIDs[iconID] then
if iconID and not usedIconIDs[iconID] then
table.insert(self.TextureList, iconID)
usedIconIDs[iconID] = true
end
Expand Down Expand Up @@ -1310,9 +1310,9 @@ function Outfitter.OutfitBar.TextureSets.Inventory:Activate()
local vNumBagSlots = C_Container.GetContainerNumSlots(vBagIndex)

if vNumBagSlots > 0 then
for vSlotIndex = 1, vNumBagSlots do
local itemInfo = C_Containeer.GetContainerItemInfo(vBagIndex, vBagSlotIndex)
local vTexture = itemInfo.iconFileID
for vBagSlotIndex = 1, vNumBagSlots do
local itemInfo = C_Container.GetContainerItemInfo(vBagIndex, vBagSlotIndex)
local vTexture = itemInfo and itemInfo.iconFileID

if vTexture and not vUsedTextures[vTexture] then
table.insert(self.TextureList, vTexture)
Expand Down