From eafcc2829f6df723631b335c0f4ddfa69aa52ba9 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Tue, 30 Sep 2014 01:25:35 +0200 Subject: [PATCH] Fixed EventTimeline. #300 --- spine-lua/Animation.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-lua/Animation.lua b/spine-lua/Animation.lua index 3e23b3a8c..c068e446c 100644 --- a/spine-lua/Animation.lua +++ b/spine-lua/Animation.lua @@ -463,7 +463,7 @@ function Animation.EventTimeline.new () if not firedEvents then return end local frames = self.frames - local frameCount = #frames + local frameCount = #frames + 1 if lastTime > time then -- Fire events after last time for looped animations. self:apply(skeleton, lastTime, 999999, firedEvents, alpha)