aboutsummaryrefslogtreecommitdiff
path: root/examples/list-pak.pd_lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/list-pak.pd_lua')
-rw-r--r--examples/list-pak.pd_lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/list-pak.pd_lua b/examples/list-pak.pd_lua
index 1651582..5964b33 100644
--- a/examples/list-pak.pd_lua
+++ b/examples/list-pak.pd_lua
@@ -48,7 +48,8 @@ function ListPak:in_n(i, sel, atoms)
-- insert selector
self.stored[i] = sel
else
- if table.getn(atoms) > 0 then
+-- if table.getn(atoms) > 0 then
+ if #(atoms) > 0 then
self.stored[i] = atoms[1]
end
end