From 2888ece9707156bf6fe067b7d922bc92c982fd1b Mon Sep 17 00:00:00 2001 From: badlogic Date: Fri, 18 Nov 2016 09:49:54 +0100 Subject: [PATCH] [lua] Closes 760, passed wrong type to setAttachment --- spine-lua/Animation.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spine-lua/Animation.lua b/spine-lua/Animation.lua index 891f99e1b..2148c88a0 100644 --- a/spine-lua/Animation.lua +++ b/spine-lua/Animation.lua @@ -604,7 +604,7 @@ function Animation.AttachmentTimeline.new (frameCount) if not attachmentName then slot:setAttachment(nil) else - skeleton:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName)) + slot:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName)) end end return @@ -619,9 +619,9 @@ function Animation.AttachmentTimeline.new (frameCount) attachmentName = self.attachmentNames[frameIndex] if not attachmentName then - skeleton.slots[self.slotIndex]:setAttachment(nil) + slot:setAttachment(nil) else - skeleton.slots[self.slotIndex]:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName)) + slot:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName)) end end