Skip to content

Commit

Permalink
fix: #2248 - Error on characters with no talents learned.
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Nov 2, 2024
1 parent 966680e commit 4520e5d
Show file tree
Hide file tree
Showing 6 changed files with 15 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.12
* Fix: #2248 - Error on characters with no talents learned.

## v11.0.11
* Fix: #2239 - Talent API issues on era and classic.

Expand Down
8 changes: 6 additions & 2 deletions Components/Core/Utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1492,8 +1492,12 @@ if GetSpecializationInfoForClassID then
-- but it has an off-by-1 error with the spec index parameter,
-- using zero-based indexes instead of 1-based indexes
if not GetSpecializationInfoForClassID(9, 3) and TMW.isClassic then
function TMW.GetSpecializationInfoForClassID(classID, i)
return GetSpecializationInfoForClassID(classID, i - 1)
function TMW.GetSpecializationInfoForClassID(classID, i)
if not i then
return GetSpecializationInfoForClassID(classID, i)
else
return GetSpecializationInfoForClassID(classID, i - 1)
end
end
else
TMW.GetSpecializationInfoForClassID = GetSpecializationInfoForClassID
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.12
* Fix: #2248 - Error on characters with no talents learned.
## v11.0.11
* Fix: #2239 - Talent API issues on era and classic.
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.11
## Version: 11.0.12
## 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.11
## Version: 11.0.12
## 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.11
## Version: 11.0.12
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down

0 comments on commit 4520e5d

Please sign in to comment.