From f08d9b817c92c604f331df1ca1d0ea68b29a338d Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Tue, 15 Oct 2013 19:19:42 +0200 Subject: [PATCH] Fixed slot not having attachment. --- spine-corona/spine-corona/spine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-corona/spine-corona/spine.lua b/spine-corona/spine-corona/spine.lua index 6905fa67f..daef3d98e 100644 --- a/spine-corona/spine-corona/spine.lua +++ b/spine-corona/spine-corona/spine.lua @@ -95,7 +95,7 @@ function spine.Skeleton.new (skeletonData, group) local skeletonR, skeletonG, skeletonB, skeletonA = self.r * 255, self.g * 255, self.b * 255, self.a for i,slot in ipairs(self.drawOrder) do local attachment = slot.attachment - if attachment.type == spine.AttachmentType.region then + if attachment and attachment.type == spine.AttachmentType.region then local image = images[slot] if not attachment then -- Attachment is gone, remove the image. if image then