diff --git a/lua/app/ui/idle/component/idle_unit_comp.lua b/lua/app/ui/idle/component/idle_unit_comp.lua index 1b7f016a..9b58e147 100644 --- a/lua/app/ui/idle/component/idle_unit_comp.lua +++ b/lua/app/ui/idle/component/idle_unit_comp.lua @@ -282,7 +282,7 @@ function IdleUnitComp:getAnimationKeyFrameTime(animationName, index) end local timeList = self.attackKeyFrameTimeMap[animationName] if timeList == nil then - local timeList = self.baseObject:getAnimationKeyFrameTimes(animationName) + timeList = self.baseObject:getAnimationKeyFrameTimes(animationName) if not timeList[1] then table.insert(timeList, 0.3) end