summaryrefslogtreecommitdiffhomepage
path: root/selector.lua
diff options
context:
space:
mode:
Diffstat (limited to 'selector.lua')
-rw-r--r--selector.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/selector.lua b/selector.lua
index a0e19f8..f2d7b16 100644
--- a/selector.lua
+++ b/selector.lua
@@ -82,6 +82,7 @@ function Selector:init()
end
-- Initialize global Selector
if self.global then
+ self.sets = {}
self.locks = {false}
self.selections = {1}
-- Initialize Selector for Controllers
@@ -162,7 +163,9 @@ function Selector:getFullSelection(allowed)
local name = self:getListValue(self:getSelection(n))
local locked = self:isLocked(n)
if locked or allowed then
- table.insert(t, {name, self.sets[n]})
+ local a = {name}
+ if self.sets[n] then table.insert(a, self.sets[n]) end
+ table.insert(t, a)
end
end
return t