zhaoyang 2 سال پیش
والد
کامیت
c6b2c61596
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxNewDressView.cs

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxNewDressView.cs

@@ -89,7 +89,10 @@ namespace GFGGame
             _oldRewardList.Clear();
             for (int i = 0; i < _rewardList.Count; i++)
             {
-                if (GetThisCount(_rewardList[i].id, _rewardList) == ItemDataManager.GetItemNum(_rewardList[i].id) && !IsAddToNewRewardList(_rewardList[i].id))
+                long hasCount = ItemDataManager.GetItemNum(_rewardList[i].id);
+                int thisCount = GetThisCount(_rewardList[i].id, _rewardList);
+                bool isAddToNew = !IsAddToNewRewardList(_rewardList[i].id);
+                if (thisCount == hasCount && !isAddToNew)
                 {
                     _newRewardList.Add(_rewardList[i]);
                 }