Skip to content

Commit

Permalink
Ensure unpack has a non nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
Snakybo committed Nov 4, 2020
1 parent 04ea997 commit 1dd6807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ function Clicked:GetTriStateLoadOptionValue(option)
end

function Clicked:GetShapeshiftFormsForSpecId(specId)
return { unpack(shapeshiftForms[specId]) }
local forms = shapeshiftForms[specId] or {}
return { unpack(forms) }
end

-- Check if the specified keybind is "restricted", a restricted keybind
Expand Down

0 comments on commit 1dd6807

Please sign in to comment.