Commit 40dd50570354f28c49fa8ba062e84c2dc6ca47b3
1 parent
69a45034
奖励内容错误
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/models/Activity.lua
... | ... | @@ -698,7 +698,7 @@ function Activity:recycleActItem(actId) |
698 | 698 | local itemCount = role:getItemCount(fromId) |
699 | 699 | if itemCount > 0 then |
700 | 700 | costs[fromId] = (costs[fromId] or 0) + itemCount |
701 | - gift[toId] = toNum * itemCount | |
701 | + gift[toId] = (gift[toId] or 0) + toNum * itemCount | |
702 | 702 | end |
703 | 703 | end |
704 | 704 | if next(costs) then | ... | ... |