diff --git a/spine-lua/SkeletonBounds.lua b/spine-lua/SkeletonBounds.lua index 365079053..de1f1f902 100644 --- a/spine-lua/SkeletonBounds.lua +++ b/spine-lua/SkeletonBounds.lua @@ -74,7 +74,7 @@ function SkeletonBounds.new () for i,slot in ipairs(skeleton.slots) do local boundingBox = slot.attachment - if boundingBox.type == AttachmentType.boundingbox then + if boundingBox and boundingBox.type == AttachmentType.boundingbox then table.insert(boundingBoxes, boundingBox) local polygon = {}