Skip to content

Commit

Permalink
Added nil check for #3454
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Sep 23, 2024
1 parent e1ef1a5 commit 8af4e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/specializations/CpHud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ end

function CpHud:generateClientStates(setting, lastvalue)
local spec = self.spec_cpHud
if #spec.availableClientJobModes.values > 0 then
if spec.availableClientJobModes and #spec.availableClientJobModes.values > 0 then
return spec.availableClientJobModes.values, spec.availableClientJobModes.texts
end
return {99}, "Client update error!"
Expand Down

0 comments on commit 8af4e96

Please sign in to comment.