diff --git a/husbandry.lua b/husbandry.lua index a5a8bff91..cf8085746 100644 --- a/husbandry.lua +++ b/husbandry.lua @@ -116,7 +116,7 @@ local function getAppropriateWorkshop(unit, collection) end end end - return #closest.jobs < 10 and closest or nil + return (closest and #closest.jobs < 10) and closest or nil end local function shearCreature(unit, workshop)