Skip to content

Commit

Permalink
Fix command to load a loadout by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lardeck committed Nov 7, 2023
1 parent 4a3502d commit 88e4562
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ImprovedTalentLoadouts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,16 @@ function TalentLoadouts:UpdateCurrentExportString()
end
end

function TalentLoadouts:LoadLoadoutByName(name)
local configIDs = self.globalDB.configIDs[self.specID]
for _, configInfo in pairs(configIDs) do
if configInfo.name == name then
LoadLoadout(nil, configInfo)
break
end
end
end

local function FindFreeConfigID()
local freeIndex = 1

Expand Down

0 comments on commit 88e4562

Please sign in to comment.