From 4e49723cd41f62b97a7f8a65bcb2fe3fb09fa945 Mon Sep 17 00:00:00 2001 From: badlogic Date: Fri, 1 Jul 2016 09:55:31 +0200 Subject: [PATCH] [spine-csharp] Fixed ColorTimeline parsing --- spine-csharp/src/SkeletonJson.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-csharp/src/SkeletonJson.cs b/spine-csharp/src/SkeletonJson.cs index 1ad145e72..2dfeb2744 100644 --- a/spine-csharp/src/SkeletonJson.cs +++ b/spine-csharp/src/SkeletonJson.cs @@ -450,7 +450,7 @@ namespace Spine { frameIndex++; } timelines.Add(timeline); - duration = Math.Max(duration, timeline.frames[timeline.FrameCount -1] * ColorTimeline.ENTRIES); + duration = Math.Max(duration, timeline.frames[(timeline.FrameCount -1) * ColorTimeline.ENTRIES]; } else if (timelineName == "attachment") { var timeline = new AttachmentTimeline(values.Count);