Skip to content

Commit

Permalink
Fix "nil item" on daily reward (#423)
Browse files Browse the repository at this point in the history
Resolves #421
  • Loading branch information
dudantas authored Jun 30, 2022
1 parent e5cc80a commit 0b65754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/modules/scripts/daily_reward/daily_reward.lua
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ function Player.selectDailyReward(self, msg)
inbox:addItem(v.ItemId, v.count) -- adding single item w/o charges
end
if k ~= columnsPicked then
description = description .. "" .. v.count .. "x " .. ItemType(item:getId()):getName() .. ", "
description = description .. "" .. v.count .. "x " .. ItemType(v.itemId):getName() .. ", "
else
description = description .. "" .. v.count .. "x " .. ItemType(item:getId()):getName() .. "."
description = description .. "" .. v.count .. "x " .. ItemType(v.itemId):getName() .. "."
end
end

Expand Down

0 comments on commit 0b65754

Please sign in to comment.