diff --git a/CHANGELOG.md b/CHANGELOG.md index 4be654ab..bb81ac55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/Components/Core/Conditions/Categories/Currencies.lua b/Components/Core/Conditions/Categories/Currencies.lua index 5b47d302..7f11825b 100644 --- a/Components/Core/Conditions/Categories/Currencies.lua +++ b/Components/Core/Conditions/Categories/Currencies.lua @@ -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 @@ -34,7 +34,7 @@ local GetCurrencyInfo = _G.GetCurrencyInfo or function(id) info.quality end return nil -end +end) or _G.GetCurrencyInfo local currencies = { diff --git a/Options/CHANGELOG.lua b/Options/CHANGELOG.lua index a8691407..45c95d6a 100644 --- a/Options/CHANGELOG.lua +++ b/Options/CHANGELOG.lua @@ -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. diff --git a/TellMeWhen-Cata.toc b/TellMeWhen-Cata.toc index bb6a439b..14f53834 100644 --- a/TellMeWhen-Cata.toc +++ b/TellMeWhen-Cata.toc @@ -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 diff --git a/TellMeWhen-Classic.toc b/TellMeWhen-Classic.toc index 1119c980..b66890c3 100644 --- a/TellMeWhen-Classic.toc +++ b/TellMeWhen-Classic.toc @@ -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 diff --git a/TellMeWhen.toc b/TellMeWhen.toc index 576b16aa..dd465ade 100644 --- a/TellMeWhen.toc +++ b/TellMeWhen.toc @@ -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