Fix crash on certain invalid touchscreen inputs

master
cheapie 2019-12-15 15:03:07 -06:00
parent c92659a11a
commit f0ce665a64
1 changed files with 1 additions and 1 deletions

View File

@ -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