diff --git a/spine-lua/Animation.lua b/spine-lua/Animation.lua index 6991d95c8..f666d7f15 100644 --- a/spine-lua/Animation.lua +++ b/spine-lua/Animation.lua @@ -521,7 +521,7 @@ function Animation.ColorTimeline.new (frameCount) b = b + (frames[frame + B] - b) * percent a = a + (frames[frame + A] - a) * percent end - local slot = skeleton.slots[slotIndex] + local slot = skeleton.slots[self.slotIndex] if alpha == 1 then slot.color:set(r, g, b, a) else diff --git a/spine-lua/AnimationState.lua b/spine-lua/AnimationState.lua index 16802cf21..606ee406f 100644 --- a/spine-lua/AnimationState.lua +++ b/spine-lua/AnimationState.lua @@ -147,7 +147,7 @@ function EventQueue:drain () end function EventQueue:clear () - self.objects[1] = nil -- dirty trick so we don't re-alloc, relies on using # in drain + self.objects = {} end