Skip to content

Commit 93bdca9

Browse files
authored
Merge pull request #1495 from chdoc/fix-husbandry
fix index of nil value
2 parents 4a950bd + 929e661 commit 93bdca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

husbandry.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ local function getAppropriateWorkshop(unit, collection)
116116
end
117117
end
118118
end
119-
return #closest.jobs < 10 and closest or nil
119+
return (closest and #closest.jobs < 10) and closest or nil
120120
end
121121

122122
local function shearCreature(unit, workshop)

0 commit comments

Comments
 (0)