diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua index 36360f69b6..8019794e58 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua @@ -80,12 +80,12 @@ function this:Caculate(templv) for j=1,#reward.Reward do local id = reward.Reward[j].item[1] local num = reward.Reward[j].item[2] - if reward.Reward[j].type == 1 then + if reward.Reward[j].type == 1 and id~=0 then if not direct[id] then direct[id] = 0 end direct[id] = direct[id] + num - elseif reward.Reward[j].type == 2 and treasureState then + elseif reward.Reward[j].type == 2 and treasureState and id~=0 then if not direct[id] then direct[id] = 0 end