SK_LongZhu
parent
eef2d8be9c
commit
98425e1418
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue