|
@@ -89,7 +89,10 @@ namespace GFGGame
|
|
_oldRewardList.Clear();
|
|
_oldRewardList.Clear();
|
|
for (int i = 0; i < _rewardList.Count; i++)
|
|
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]);
|
|
_newRewardList.Add(_rewardList[i]);
|
|
}
|
|
}
|