Skip to content

Commit

Permalink
FIX:rare crash when forcing active a trigger group (#6898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak authored Dec 4, 2023
1 parent 4145257 commit 360c87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ function calcs.initEnv(build, mode, override, specEnv)
end

-- Determine main skill group
if env.mode == "CALCS" then
if env.mode == "CALCS" or env.mode == "CACHE" then
env.calcsInput.skill_number = m_min(m_max(#build.skillsTab.socketGroupList, 1), env.calcsInput.skill_number or 1)
env.mainSocketGroup = env.calcsInput.skill_number
else
Expand Down

0 comments on commit 360c87b

Please sign in to comment.