Skip to content

Commit

Permalink
fix: #2250 - Currency checking error in Cata clasic
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Nov 5, 2024
1 parent 4520e5d commit 25569cb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v11.0.13
* Fix: #2250 - Currency checking error in Cata clasic

## v11.0.12
* Fix: #2248 - Error on characters with no talents learned.

Expand Down
4 changes: 2 additions & 2 deletions Components/Core/Conditions/Categories/Currencies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local print = TMW.print
local CNDT = TMW.CNDT
local Env = CNDT.Env

local GetCurrencyInfo = _G.GetCurrencyInfo or function(id)
local GetCurrencyInfo = (C_CurrencyInfo and C_CurrencyInfo.GetCurrencyInfo and function(id)
local info = C_CurrencyInfo.GetCurrencyInfo(id)
if info then
return
Expand All @@ -34,7 +34,7 @@ local GetCurrencyInfo = _G.GetCurrencyInfo or function(id)
info.quality
end
return nil
end
end) or _G.GetCurrencyInfo


local currencies = {
Expand Down
3 changes: 3 additions & 0 deletions Options/CHANGELOG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ if not TMW then return end
TMW.CHANGELOG_LASTVER="10.0.0"

TMW.CHANGELOG = [==[
## v11.0.13
* Fix: #2250 - Currency checking error in Cata clasic
## v11.0.12
* Fix: #2248 - Error on characters with no talents learned.
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen-Cata.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.12
## Version: 11.0.13
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen-Classic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.12
## Version: 11.0.13
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.12
## Version: 11.0.13
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down

0 comments on commit 25569cb

Please sign in to comment.