Skip to content

Commit 7b3263a

Browse files
author
justjuangui
committed
Fixes #317
1 parent f685f69 commit 7b3263a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modules/CalcSetup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
157157
local added = false
158158
for j, extra in ipairs(mod) do
159159
-- if type conditional and start with WeaponSet then update the var to the current weapon set
160-
if extra.type == "Condition" and extra.var:match("^WeaponSet") then
160+
if extra.type == "Condition" and extra.var and extra.var:match("^WeaponSet") then
161161
mod[j].var = "WeaponSet".. node.allocMode
162162
added = true
163163
break

0 commit comments

Comments
 (0)