diff --git a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua index 5620e9134d..49ab8b0cf5 100644 --- a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua @@ -168,7 +168,7 @@ function this:SetCurTypeAndIndex() if curGiftList[curType] and #curGiftList[curType] > 0 and curGiftList[curType][curIndex] then elseif curGiftList[curType] and #curGiftList[curType] > 0 and (not curGiftList[curType][curIndex]) then - urIndex = #curGiftList[curType]/2+1 + curIndex = #curGiftList[curType]/2+1 if curIndex > #curGiftList[curType] then curIndex = #curGiftList[curType] end