summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2019-12-15 15:03:07 -0600
committercheapie <no-email-for-you@example.com>2019-12-15 15:03:07 -0600
commitf0ce665a64af88379615d834b88638290bcbb07a (patch)
treebddae7ea087c2bd8b100799d821de871f624a748
parentc92659a11ad77093b8a66a43a8fe362590774d48 (diff)
downloaddigistuff-f0ce665a64af88379615d834b88638290bcbb07a.tar
digistuff-f0ce665a64af88379615d834b88638290bcbb07a.tar.gz
digistuff-f0ce665a64af88379615d834b88638290bcbb07a.tar.bz2
digistuff-f0ce665a64af88379615d834b88638290bcbb07a.tar.xz
digistuff-f0ce665a64af88379615d834b88638290bcbb07a.zip
Fix crash on certain invalid touchscreen inputs
-rw-r--r--touchscreen.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/touchscreen.lua b/touchscreen.lua
index 285590b..6325f28 100644
--- a/touchscreen.lua
+++ b/touchscreen.lua
@@ -253,7 +253,7 @@ digistuff.ts_on_digiline_receive = function (pos, node, channel, msg)
data = digistuff.process_command(meta,data,msg)
else
for _,i in ipairs(msg) do
- if i.command then
+ if type(i) == "table" and i.command then
data = digistuff.process_command(meta,data,i) or data
end
end