[spine-csharp] Fixed ColorTimeline parsing

This commit is contained in:
badlogic 2016-07-01 09:55:31 +02:00
parent a39df63fd0
commit 4e49723cd4

View File

@ -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);