瀏覽代碼

[lua] Closes #823, accessed global instead of property

badlogic 8 年之前
父節點
當前提交
744230359b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      spine-lua/AnimationState.lua

+ 1 - 0
spine-lua/AnimationState.lua

@@ -561,6 +561,7 @@ function AnimationState:setAnimation (trackIndex, animation, loop)
   local interrupt = true;
   local interrupt = true;
   local current = self:expandToIndex(trackIndex)
   local current = self:expandToIndex(trackIndex)
   local queue = self.queue
   local queue = self.queue
+  local tracks = self.tracks
   if current then
   if current then
     if current.nextTrackLast == -1 then
     if current.nextTrackLast == -1 then
       -- Don't mix from an entry that was never applied.
       -- Don't mix from an entry that was never applied.