Browse Source

Merge branch 'master' of http://10.108.64.190:3000/gfg/client

guodong 1 year ago
parent
commit
9bb6cbf9ad

+ 1 - 3
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -565,11 +565,9 @@ namespace GFGGame
         {
             UI_ComConsume listItem = UI_ComConsume.Proxy(obj);
             int index = (int)listItem.target.data;
-
-            if (itemsCount[index] == 0)
+            if (index >= itemsCount.Count|| itemsCount[index] == 0)
             {
                 Timers.inst.Remove(OnTimedEvent);
-
                 return;
             }
             itemsCount[index] = itemsCount[index] - 1;

BIN
GameClient/Assets/ResIn/UI/Studio/Studio_fui.bytes