PetTracker

PetTracker

13M Downloads

Rivals Tab Error Displaying Currency

Ghost-Sailor opened this issue ยท 0 comments

commented

Upon opening the rivals tab for Little Tommy Newcomer, on Pandaria, who awards Gold and Timeless Coin, an error is displayed.

Message: Interface\AddOns\PetTracker\Core\Rival.lua:116: Usage:GetCurrencyLink(currencyType, currencyAmount)
Time: Sun Sep 22 20:16:35 2019
Count: 1
Stack: Interface\AddOns\PetTracker\Core\Rival.lua:116: Usage:GetCurrencyLink(currencyType, currencyAmount)
[C]: in function `GetCurrencyLink'
Interface\AddOns\PetTracker\Core\Rival.lua:116: in function `GetRewards'
...nterface\AddOns\PetTracker\Features\RivalJournal.lua:198: in function `Display'
...nterface\AddOns\PetTracker\Features\RivalJournal.lua:164: in function `Update'
...nterface\AddOns\PetTracker\Features\RivalJournal.lua:115: in function `SetRival'
[string "*:OnClick"]:2: in function <[string "*:OnClick"]:1>

Locals: (*temporary) = 777

Line 116 is link = GetCurrencyLink(id),, which ignores the second argument needed for GetCurrencyLink. Changing this line to link = GetCurrencyLink(id, tonumber(count, 36)), resolves this error.