Jelajahi Sumber

添加搜索参数判空

leiyasi 1 tahun lalu
induk
melakukan
5df04b4882

+ 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>();