Skip to content

Commit

Permalink
Merge pull request #27 from doadin/master
Browse files Browse the repository at this point in the history
Fix CheckTalents Function Causing Error
  • Loading branch information
pwilkowski authored Jun 8, 2023
2 parents 8dcff62 + 91ac1cd commit bcbaf2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,12 @@ function MaxDps:CheckTalents()

-- last selected configID or fall back to default spec config
local configID = C_ClassTalents.GetActiveConfigID();
local configInfo = C_Traits.GetConfigInfo(configID);
local treeIDs = configInfo.treeIDs;
local configInfo = configID and C_Traits.GetConfigInfo(configID);
local treeIDs = configInfo and configInfo.treeIDs;

if not treeIDs then
return
end

for _, treeID in ipairs(treeIDs) do
local nodes = C_Traits.GetTreeNodes(treeID);
Expand Down
4 changes: 2 additions & 2 deletions MaxDps.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Title: MaxDps
## Notes: Rotation helper framework.
## Version: 10.0.5
## Version: 10.0.6
## Author: Kaminaris
## Interface: 100002
## Interface: 100100
## SavedVariables: MaxDpsOptions
## OptionalDependencies: Bartender4, ElvUI, ButtonForge, SVUI_ActionBars, G15Buttons, SyncUI, LUI, Dominos, DiabolicUI, Neuron
## X-Curse-Project-ID: 91970
Expand Down

0 comments on commit bcbaf2b

Please sign in to comment.