Skip to content

Commit

Permalink
Fix crash when hovering attribute requirements (PathOfBuildingCommuni…
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 committed Mar 23, 2024
1 parent 2394f1b commit f616469
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Classes/CalcBreakdownControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ function CalcBreakdownClass:AddBreakdownSection(sectionData)
local rowList = copyTable(breakdown.rowList, true)
local colKey = breakdown.colList[1].key
table.sort(rowList, function(a, b)
if a.reqNum then
return a.reqNum > b.reqNum
end
return a[colKey] > b[colKey]
end)

Expand Down

0 comments on commit f616469

Please sign in to comment.