浏览代码

添加搜索参数判空

leiyasi 1 年之前
父节点
当前提交
5df04b4882
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressFilterView.cs

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressFilterView.cs

@@ -72,7 +72,11 @@ namespace GFGGame
                 _ui.m_c1.selectedIndex = (int)(this.viewData as object[])[0];
                 // For change m_comSearch.m_c1
                 _ui.m_comSearch.m_c1.selectedIndex = (int)(this.viewData as object[])[1];
-                _IsTeaPart = (int)(this.viewData as object[])[2] == 1;
+                if((this.viewData as object[]).Length > 2)
+                {
+                    _IsTeaPart = (int)(this.viewData as object[])[2] == 1;
+                }
+                
             }
 
             _selectRarityList = DressUpMenuItemDataManager.selectRarityList;// new List<int>();