浏览代码

限时累充报错处理

zhangyuqian 1 年之前
父节点
当前提交
4eda5b715d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/NewLimitChargeView.cs

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/NewLimitChargeView.cs

@@ -263,7 +263,7 @@ namespace GFGGame
         private void UpdateRedDot()
         {
             int indexPrior = Math.Max(0, _curSelectIndex - 1);
-            int indexNext = Math.Min(_rechargeCfgs.Count, _curSelectIndex + 1);
+            int indexNext = Math.Min(_rechargeCfgs.Count - 1, _curSelectIndex + 1);
             SetRedDot(indexPrior);
             SetRedDot(indexNext);
         }