diff --git a/src/pixi/extras/Spine.js b/src/pixi/extras/Spine.js index 4184699..b275290 100644 --- a/src/pixi/extras/Spine.js +++ b/src/pixi/extras/Spine.js @@ -2042,7 +2042,7 @@ frameIndex++; } timelines.push(timeline); - duration = Math.max(duration, timeline.frames[timeline.frameCount * 3 - 3]); + duration = Math.max(duration, timeline.frames[timeline.getFrameCount() * 3 - 3]); } var ffd = map["ffd"]; @@ -2103,7 +2103,7 @@ frameIndex++; } timelines[timelines.length] = timeline; - duration = Math.max(duration, timeline.frames[timeline.frameCount - 1]); + duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]); } } }