leiyasi 1 жил өмнө
parent
commit
82a461d141

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Common/Controller/LuckyBoxController.cs

@@ -195,9 +195,10 @@ namespace GFGGame
         {
         {
             _index ^= 1;
             _index ^= 1;
         }
         }
+
         private bool InitModel(int index)
         private bool InitModel(int index)
         {
         {
-            if (_dressUpObjUIs[index].sceneObject == null)
+            if (index >= _dressUpObjUIs.Count || _dressUpObjUIs[index].sceneObject == null)
             {
             {
                 return false;
                 return false;
             }
             }