//subdivide: fix undefined local variable

This commit is contained in:
Starbeamrainbowlabs 2021-02-06 19:34:46 +00:00
parent ac954abaea
commit 15417354c6
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -10,7 +10,7 @@ local function will_trigger_saferegion(name, cmd_name, args)
local parsed = {def.parse(args)} local parsed = {def.parse(args)}
local parse_success = table.remove(parsed, 1) local parse_success = table.remove(parsed, 1)
if not success then return nil, table.remove(parsed, 1) end if not parse_success then return nil, table.remove(parsed, 1) end
if not def.nodes_needed then return false end if not def.nodes_needed then return false end
local success, result = def.nodes_needed(name, unpack(parsed)) local success, result = def.nodes_needed(name, unpack(parsed))