frozn / TipTac

WoW AddOn TipTac Reborn
GNU General Public License v3.0
108 stars 20 forks source link

GetRewardLevelForDifficultyLevel on "Mythic Keystone" link in chat #236

Closed tlundse closed 1 year ago

tlundse commented 1 year ago

While mousing over a "Mythic Keystone" link in chat, I got the following error:

3x TipTacItemRef/ttItemRef.lua:2358: bad argument #1 to 'GetRewardLevelForDifficultyLevel' (outside of expected range -2147483648 to 2147483647 - Usage: local weeklyRewardLevel, endOfRunRewardLevel = C_MythicPlus.GetRewardLevelForDifficultyLevel(difficultyLevel))

Locals: (temporary) = "" (temporary) = "outside of expected range -2147483648 to 2147483647 - Usage: local weeklyRewardLevel, endOfRunRewardLevel = C_MythicPlus.GetRewardLevelForDifficultyLevel(difficultyLevel)"

frozn commented 1 year ago

Thanks for reporting this! 👍

I added a check that the keystone level is a valid number. I think it probably comes from a corrupt chatlink. The fix will be included in the next release.