SK_LongZhu
DESKTOP-MMO982B\User 2025-08-22 16:10:22 +08:00
parent eef2d8be9c
commit 98425e1418
1 changed files with 2 additions and 2 deletions

View File

@ -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
curIndex = #curGiftList[curType]/2+1
curIndex = math.floor(#curGiftList[curType]/2+1)
if curIndex > #curGiftList[curType] then
curIndex = #curGiftList[curType]
end
@ -178,7 +178,7 @@ function this:SetCurTypeAndIndex()
for k,v in pairs(curGiftList) do
if v and #v > 0 then
curType = k
curIndex = #curGiftList[curType]/2+1
curIndex = math.floor(#curGiftList[curType]/2+1)
if curIndex > #curGiftList[curType] then
curIndex = #curGiftList[curType]
end