Browse Source

飞花令容错处理

zhangyuqian 1 year ago
parent
commit
e8246665b4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Data/ArenaDataManager.cs

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Data/ArenaDataManager.cs

@@ -548,10 +548,11 @@ namespace GFGGame
         {
         {
             _roleData.itemScoreList.Clear();
             _roleData.itemScoreList.Clear();
             _roleData.itemScoreDic.Clear();
             _roleData.itemScoreDic.Clear();
+
             for (int i = 0; i < _roleData.itemList.Count; i++)
             for (int i = 0; i < _roleData.itemList.Count; i++)
             {
             {
                 int score = GetItemAdditionScore(_roleData.itemList[i], _roleData.scoreType);
                 int score = GetItemAdditionScore(_roleData.itemList[i], _roleData.scoreType);
-                if(arreProto != null && arreProto.SuitScore[i] != 0)
+                if(arreProto != null && arreProto.SuitScore.Count == _roleData.itemList.Count)
                 {
                 {
                     score = arreProto.SuitScore[i];
                     score = arreProto.SuitScore[i];
                 }
                 }