From 1dd68074e2acf43707236773b16e660a4bc6772e Mon Sep 17 00:00:00 2001 From: Snakybo Date: Wed, 4 Nov 2020 11:28:40 +0100 Subject: [PATCH] Ensure unpack has a non nil value --- Core/Utils.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Utils.lua b/Core/Utils.lua index 597ae01a..a2d0e84d 100644 --- a/Core/Utils.lua +++ b/Core/Utils.lua @@ -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