Browse Source

Fixed EventTimeline.

#300
NathanSweet 11 years ago
parent
commit
eafcc2829f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-lua/Animation.lua

+ 1 - 1
spine-lua/Animation.lua

@@ -463,7 +463,7 @@ function Animation.EventTimeline.new ()
 		if not firedEvents then return end
 		if not firedEvents then return end
 
 
 		local frames = self.frames
 		local frames = self.frames
-		local frameCount = #frames
+		local frameCount = #frames + 1
 
 
 		if lastTime > time then -- Fire events after last time for looped animations.
 		if lastTime > time then -- Fire events after last time for looped animations.
 			self:apply(skeleton, lastTime, 999999, firedEvents, alpha)
 			self:apply(skeleton, lastTime, 999999, firedEvents, alpha)