|
@@ -263,7 +263,7 @@ namespace GFGGame
|
|
private void UpdateRedDot()
|
|
private void UpdateRedDot()
|
|
{
|
|
{
|
|
int indexPrior = Math.Max(0, _curSelectIndex - 1);
|
|
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(indexPrior);
|
|
SetRedDot(indexNext);
|
|
SetRedDot(indexNext);
|
|
}
|
|
}
|