Skip to content

Commit 72060b6

Browse files
committed
Null check for item runes (why is it even nil?)
1 parent 9ba3f05 commit 72060b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Modules/CalcSetup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ function calcs.initEnv(build, mode, override, specEnv)
11041104
-- Rune / Soul Core Sockets
11051105
local socketed = 0
11061106
for i = 1, item.itemSocketCount do
1107-
if item.runes[i] ~= "None" then
1107+
if item.runes[i] and item.runes[i] ~= "None" then
11081108
socketed = socketed + 1
11091109
augmentCounts[item.runes[i]] = (augmentCounts[item.runes[i]] or 0) + 1
11101110
end

0 commit comments

Comments
 (0)