Skip to content

Commit

Permalink
Skip empty talents in ordered cache
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Jun 14, 2024
1 parent 69226d8 commit b900f4b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1064,11 +1064,13 @@ do
for tab = 1, numTabs do
temp[tab] = {}
local products = {}
for i = 1,GetNumTalents(tab) do
local _, _, tier, column = GetTalentInfo(tab,i)
local product = (tier - 1) * 4 + column
temp[tab][product] = i
table.insert(products, product)
for i = 1, GetNumTalents(tab) do
local name, _, tier, column = GetTalentInfo(tab, i)
if name then
local product = (tier - 1) * 4 + column
temp[tab][product] = i
table.insert(products, product)
end
end

table.sort(products)
Expand Down

0 comments on commit b900f4b

Please sign in to comment.