Skip to content

Commit

Permalink
Use the existing GetCurrencyInfo upvalue
Browse files Browse the repository at this point in the history
luacheck also doesn't like this one (could add the global to .luacheckrc instead).
  • Loading branch information
rdw-software committed Feb 6, 2025
1 parent 8712610 commit 0445d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function R:OnCurrencyUpdate(event)

-- Check if any coins were used
for k, v in pairs(self.coins) do
local currency = C_CurrencyInfo.GetCurrencyInfo(k)
local currency = GetCurrencyInfo(k)
if currency == nil then
return
end
Expand Down

0 comments on commit 0445d0d

Please sign in to comment.