Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix special characters in set name causing crash #8353

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Modules/Build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -806,11 +806,11 @@ function buildMode:SyncLoadouts()
local linkMatch = string.match(treeName, "%{(%w+)%}") or treeName
if linkMatch then
local skillName = self.skillsTab.skillSets[self.skillsTab.activeSkillSetId].title or "Default"
local skillMatch = oneSkill or skillName:find(linkMatch)
local skillMatch = oneSkill or skillName:find(linkMatch, 1, true)
local itemName = self.itemsTab.itemSets[self.itemsTab.activeItemSetId].title or "Default"
local itemMatch = oneItem or itemName:find(linkMatch)
local itemMatch = oneItem or itemName:find(linkMatch, 1, true)
local configName = self.configTab.configSets[self.configTab.activeConfigSetId].title or "Default"
local configMatch = oneConfig or configName:find(linkMatch)
local configMatch = oneConfig or configName:find(linkMatch, 1, true)

if skillMatch and itemMatch and configMatch then
self.controls.buildLoadouts:SetSel(i)
Expand Down
Loading