Skip to content

Commit

Permalink
modules/Gear: Go back to providing a table to GetItemStats, closes #94
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Dec 9, 2020
1 parent 5febf22 commit d27923f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Gear.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ do
-- Handle missing gems
local totalItemSockets = 0

local statsTable = GetItemStats(itemLink)
local statsTable = {}
GetItemStats(itemLink, statsTable)
for k, v in next, statsTable do
if k:find("EMPTY_SOCKET_", nil, true) then
totalItemSockets = totalItemSockets + v
Expand Down

0 comments on commit d27923f

Please sign in to comment.