summaryrefslogtreecommitdiffhomepage
path: root/selector.lua
diff options
context:
space:
mode:
Diffstat (limited to 'selector.lua')
-rw-r--r--selector.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/selector.lua b/selector.lua
index f382bbb..75c0190 100644
--- a/selector.lua
+++ b/selector.lua
@@ -136,11 +136,13 @@ end
-- Check if given number is locked
function Selector:isLocked(n)
+ local n = n or 1
return self.locks[n]
end
-- Get value of selection of given number
function Selector:getSelection(n)
+ local n = n or 1
return self.selections[n]
end