Преглед изворни кода

抽奖展示界面防止出错,添加小于等于0的判断条件

huangxiaoyue пре 1 година
родитељ
комит
1b8a63f38d

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusShowView.cs

@@ -484,7 +484,7 @@ namespace GFGGame
                         }
 
                         //判断是否需要显示集齐套装界面(需要的时候晚3个定时器时间)
-                        if (count < totalCount || (count >= totalCount && _countShow > 5))
+                        if (count <= 0 || totalCount <= 0 || count < totalCount || (count >= totalCount && _countShow > 5))
                         {
                             _recordTurnIndex.Add(index);
                             _countShow = 0;